From 8ae23a7fa6202377f957919d763c618859cb0d74 Mon Sep 17 00:00:00 2001 From: Matthias Andreas Benkard Date: Sat, 31 Oct 2020 19:59:24 +0100 Subject: KB68 Add privacy policy. Change-Id: Ib55cd55b2c9f53211ea6c18c2890f715a61d9d9b --- .../cms/privacy/about/PrivacyPolicyResource.java | 22 ++++++++++++++++++++++ .../mulkcms2/cms/privacy/about/package-info.java | 4 ++++ 2 files changed, 26 insertions(+) create mode 100644 src/main/java/eu/mulk/mulkcms2/cms/privacy/about/PrivacyPolicyResource.java create mode 100644 src/main/java/eu/mulk/mulkcms2/cms/privacy/about/package-info.java (limited to 'src/main/java/eu') 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; -- cgit v1.2.3