diff options
author | Matthias Andreas Benkard <code@mail.matthias.benkard.de> | 2020-08-29 10:47:39 +0200 |
---|---|---|
committer | Matthias Andreas Benkard <code@mail.matthias.benkard.de> | 2020-08-29 10:47:39 +0200 |
commit | eb8165185bc1f8a9888d95c88b7a5975da803dcd (patch) | |
tree | 38e8e4ead4476e9718923414077f7ab3e4e89c50 /src/main/scala/eu | |
parent | d5498fcec7394d2b89667832853e239d5f496e1c (diff) |
Remove Scala again.
At this time, Scala support is not worth very much, and as Scala 3 is
not here yet the compiler slows down the build significantly.
This change may be reverted in the future.
Change-Id: Ie172489284f324e8c2313919b293fdf98754c2f6
Diffstat (limited to 'src/main/scala/eu')
-rw-r--r-- | src/main/scala/eu/mulk/mulkcms2/cms/about/AboutResource.java | 22 | ||||
-rw-r--r-- | src/main/scala/eu/mulk/mulkcms2/cms/about/AboutResource.scala | 18 |
2 files changed, 22 insertions, 18 deletions
diff --git a/src/main/scala/eu/mulk/mulkcms2/cms/about/AboutResource.java b/src/main/scala/eu/mulk/mulkcms2/cms/about/AboutResource.java new file mode 100644 index 0000000..a1da033 --- /dev/null +++ b/src/main/scala/eu/mulk/mulkcms2/cms/about/AboutResource.java @@ -0,0 +1,22 @@ +package eu.mulk.mulkcms2.cms.about; + +import io.quarkus.qute.Template; +import io.quarkus.qute.TemplateInstance; +import io.quarkus.qute.api.ResourcePath; +import javax.ws.rs.GET; +import javax.ws.rs.Path; +import javax.ws.rs.Produces; +import javax.ws.rs.core.MediaType; + +@Path("/about") +public class AboutResource { + + @ResourcePath("benki/about/index.html") + Template index; + + @GET + @Produces(MediaType.TEXT_HTML) + public TemplateInstance getIndex() { + return index.instance(); + } +} diff --git a/src/main/scala/eu/mulk/mulkcms2/cms/about/AboutResource.scala b/src/main/scala/eu/mulk/mulkcms2/cms/about/AboutResource.scala deleted file mode 100644 index f7b3261..0000000 --- a/src/main/scala/eu/mulk/mulkcms2/cms/about/AboutResource.scala +++ /dev/null @@ -1,18 +0,0 @@ -package eu.mulk.mulkcms2.cms.about - -import io.quarkus.qute.{Template, TemplateInstance} -import io.quarkus.qute.api.ResourcePath -import javax.ws.rs.{GET, Path, Produces} -import javax.ws.rs.core.MediaType - -@Path("/about") -class AboutResource { - - @ResourcePath("benki/about/index.html") - var index: Template = _ - - @GET - @Produces(Array(MediaType.TEXT_HTML)) - def getIndex: TemplateInstance = - index.instance() -} |