summaryrefslogtreecommitdiff
path: root/src/main/scala
diff options
context:
space:
mode:
authorMatthias Andreas Benkard <code@mail.matthias.benkard.de>2020-01-12 15:42:02 +0100
committerMatthias Andreas Benkard <code@mail.matthias.benkard.de>2020-01-12 15:42:02 +0100
commit4c5847bffd0401e62a3f2beaeba8c0cb887359ce (patch)
tree127d56260008d7cb2f243c6b2e61010cc301bdd5 /src/main/scala
parente00c80770d867a49979eb86724cd6c94f7a8d2e2 (diff)
Import fresh Quarkus project.
Change-Id: I05fa5dd499cdca04adee9afbef9f83b3afd8fe0f
Diffstat (limited to 'src/main/scala')
-rw-r--r--src/main/scala/eu/mulk/ExampleResource.scala12
1 files changed, 12 insertions, 0 deletions
diff --git a/src/main/scala/eu/mulk/ExampleResource.scala b/src/main/scala/eu/mulk/ExampleResource.scala
new file mode 100644
index 0000000..a68b2a7
--- /dev/null
+++ b/src/main/scala/eu/mulk/ExampleResource.scala
@@ -0,0 +1,12 @@
+package eu.mulk
+
+import javax.ws.rs.{GET, Path, Produces}
+import javax.ws.rs.core.MediaType
+
+@Path("/hello")
+class ExampleResource {
+
+ @GET
+ @Produces(Array[String](MediaType.TEXT_PLAIN))
+ def hello() = "hello!"
+}