diff options
author | Matthias Andreas Benkard <code@mail.matthias.benkard.de> | 2020-04-16 17:07:59 +0200 |
---|---|---|
committer | Matthias Andreas Benkard <code@mail.matthias.benkard.de> | 2020-08-22 13:28:21 +0200 |
commit | 7e71d1c86f44617cfd09caedff1107bdcf27b255 (patch) | |
tree | a5610b34b21dfbd1429937a5e6fbd2a9df534cbe /src/main | |
parent | 43d59d3bb3448cdd1b43b7ad0aa085ed143eb4ef (diff) |
Add Scala compiler.
Change-Id: I68ffcf35b1b6ea2e42a479bdb71f868a486781db
Diffstat (limited to 'src/main')
-rw-r--r-- | src/main/scala/eu/mulk/mulkcms2/cms/about/AboutResource.scala (renamed from src/main/java/eu/mulk/mulkcms2/cms/about/AboutResource.java) | 14 |
1 files changed, 6 insertions, 8 deletions
diff --git a/src/main/java/eu/mulk/mulkcms2/cms/about/AboutResource.java b/src/main/scala/eu/mulk/mulkcms2/cms/about/AboutResource.scala index 39ecaca..0d70f53 100644 --- a/src/main/java/eu/mulk/mulkcms2/cms/about/AboutResource.java +++ b/src/main/scala/eu/mulk/mulkcms2/cms/about/AboutResource.scala @@ -1,23 +1,21 @@ package eu.mulk.mulkcms2.cms.about; -import static javax.ws.rs.core.MediaType.TEXT_HTML; - 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 { +class AboutResource { @ResourcePath("benki/about/index.html") - Template index; + var index: Template = null; @GET - @Produces(TEXT_HTML) - public TemplateInstance getIndex() { - return index.instance(); - } + @Produces(Array(MediaType.TEXT_HTML)) + def getIndex(): TemplateInstance = + index.instance(); } |