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