summaryrefslogtreecommitdiff
path: root/src/main/java/eu
diff options
context:
space:
mode:
authorMatthias Andreas Benkard <code@mail.matthias.benkard.de>2020-10-31 19:59:24 +0100
committerMatthias Andreas Benkard <code@mail.matthias.benkard.de>2020-10-31 19:59:24 +0100
commit8ae23a7fa6202377f957919d763c618859cb0d74 (patch)
treedb8aa409316aba1a69af487d1f809ad305418921 /src/main/java/eu
parentc0ed9cca59eb36477c8efeb4b724fa4be320ff38 (diff)
KB68 Add privacy policy.
Change-Id: Ib55cd55b2c9f53211ea6c18c2890f715a61d9d9b
Diffstat (limited to 'src/main/java/eu')
-rw-r--r--src/main/java/eu/mulk/mulkcms2/cms/privacy/about/PrivacyPolicyResource.java22
-rw-r--r--src/main/java/eu/mulk/mulkcms2/cms/privacy/about/package-info.java4
2 files changed, 26 insertions, 0 deletions
diff --git a/src/main/java/eu/mulk/mulkcms2/cms/privacy/about/PrivacyPolicyResource.java b/src/main/java/eu/mulk/mulkcms2/cms/privacy/about/PrivacyPolicyResource.java
new file mode 100644
index 0000000..05c155c
--- /dev/null
+++ b/src/main/java/eu/mulk/mulkcms2/cms/privacy/about/PrivacyPolicyResource.java
@@ -0,0 +1,22 @@
+package eu.mulk.mulkcms2.cms.privacy.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("/privacy")
+public class PrivacyPolicyResource {
+
+ @ResourcePath("benki/privacy/index.html")
+ Template index;
+
+ @GET
+ @Produces(MediaType.TEXT_HTML)
+ public TemplateInstance getIndex() {
+ return index.instance();
+ }
+}
diff --git a/src/main/java/eu/mulk/mulkcms2/cms/privacy/about/package-info.java b/src/main/java/eu/mulk/mulkcms2/cms/privacy/about/package-info.java
new file mode 100644
index 0000000..0222225
--- /dev/null
+++ b/src/main/java/eu/mulk/mulkcms2/cms/privacy/about/package-info.java
@@ -0,0 +1,4 @@
+@NonNullPackage
+package eu.mulk.mulkcms2.cms.privacy.about;
+
+import pl.tlinkowski.annotation.basic.NonNullPackage;