From a5ae4e6a1b24ea8655f89b4aec672c5520f6e0d7 Mon Sep 17 00:00:00 2001 From: Matthias Andreas Benkard Date: Mon, 13 Jan 2020 13:27:10 +0100 Subject: Disable Scala, use Java everywhere. Change-Id: Ieec7d20f3e7d7a15e7db951d2a0b4ebdcf8503a5 --- src/main/java/eu/mulk/mulkcms2/web/ExampleResource.java | 14 ++++++++++++++ 1 file changed, 14 insertions(+) create mode 100644 src/main/java/eu/mulk/mulkcms2/web/ExampleResource.java (limited to 'src/main/java') 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!"; + } +} -- cgit v1.2.3