diff options
author | Matthias Andreas Benkard <code@mail.matthias.benkard.de> | 2020-01-13 13:27:10 +0100 |
---|---|---|
committer | Matthias Andreas Benkard <code@mail.matthias.benkard.de> | 2020-01-14 17:50:00 +0100 |
commit | a5ae4e6a1b24ea8655f89b4aec672c5520f6e0d7 (patch) | |
tree | c7ac4daf86fd4c1a4532ce17a5ab4af5c224ee22 /src/main | |
parent | 9a8d70f3fab9915b8e82e7c2e340c4217c6e00fb (diff) |
Disable Scala, use Java everywhere.
Change-Id: Ieec7d20f3e7d7a15e7db951d2a0b4ebdcf8503a5
Diffstat (limited to 'src/main')
-rw-r--r-- | src/main/java/eu/mulk/mulkcms2/web/ExampleResource.java | 14 | ||||
-rw-r--r-- | src/main/scala/eu/mulk/mulkcms2/ExampleResource.scala | 12 |
2 files changed, 14 insertions, 12 deletions
diff --git a/src/main/java/eu/mulk/mulkcms2/web/ExampleResource.java b/src/main/java/eu/mulk/mulkcms2/web/ExampleResource.java new file mode 100644 index 0000000..4951eb4 --- /dev/null +++ b/src/main/java/eu/mulk/mulkcms2/web/ExampleResource.java @@ -0,0 +1,14 @@ +package eu.mulk.mulkcms2.web; + +import javax.ws.rs.GET; +import javax.ws.rs.Produces; +import javax.ws.rs.core.MediaType; + +public class ExampleResource { + + @GET + @Produces({MediaType.TEXT_PLAIN}) + public String hello() { + return "hello!"; + } +} diff --git a/src/main/scala/eu/mulk/mulkcms2/ExampleResource.scala b/src/main/scala/eu/mulk/mulkcms2/ExampleResource.scala deleted file mode 100644 index 6a2db1a..0000000 --- a/src/main/scala/eu/mulk/mulkcms2/ExampleResource.scala +++ /dev/null @@ -1,12 +0,0 @@ -package eu.mulk.mulkcms2 - -import javax.ws.rs.core.MediaType -import javax.ws.rs.{GET, Path, Produces} - -@Path("/hello") -class ExampleResource { - - @GET - @Produces(Array[String](MediaType.TEXT_PLAIN)) - def hello() = "hello!" -} |