From 4c5847bffd0401e62a3f2beaeba8c0cb887359ce Mon Sep 17 00:00:00 2001 From: Matthias Andreas Benkard Date: Sun, 12 Jan 2020 15:42:02 +0100 Subject: Import fresh Quarkus project. Change-Id: I05fa5dd499cdca04adee9afbef9f83b3afd8fe0f --- src/main/scala/eu/mulk/ExampleResource.scala | 12 ++++++++++++ 1 file changed, 12 insertions(+) create mode 100644 src/main/scala/eu/mulk/ExampleResource.scala (limited to 'src/main/scala') 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!" +} -- cgit v1.2.3