blob: a68b2a7037c0e4ad3ce67d4f65726b50d49b06db [file] [log] [blame]
Matthias Andreas Benkard4c5847b2020-01-12 15:42:02 +01001package eu.mulk
2
3import javax.ws.rs.{GET, Path, Produces}
4import javax.ws.rs.core.MediaType
5
6@Path("/hello")
7class ExampleResource {
8
9 @GET
10 @Produces(Array[String](MediaType.TEXT_PLAIN))
11 def hello() = "hello!"
12}