summaryrefslogtreecommitdiff
path: root/src/main/scala/eu
diff options
context:
space:
mode:
Diffstat (limited to 'src/main/scala/eu')
-rw-r--r--src/main/scala/eu/mulk/mulkcms2/cms/about/AboutResource.scala21
1 files changed, 21 insertions, 0 deletions
diff --git a/src/main/scala/eu/mulk/mulkcms2/cms/about/AboutResource.scala b/src/main/scala/eu/mulk/mulkcms2/cms/about/AboutResource.scala
new file mode 100644
index 0000000..0d70f53
--- /dev/null
+++ b/src/main/scala/eu/mulk/mulkcms2/cms/about/AboutResource.scala
@@ -0,0 +1,21 @@
+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")
+class AboutResource {
+
+ @ResourcePath("benki/about/index.html")
+ var index: Template = null;
+
+ @GET
+ @Produces(Array(MediaType.TEXT_HTML))
+ def getIndex(): TemplateInstance =
+ index.instance();
+}