diff options
author | Matthias Andreas Benkard <code@mail.matthias.benkard.de> | 2020-10-31 19:59:24 +0100 |
---|---|---|
committer | Matthias Andreas Benkard <code@mail.matthias.benkard.de> | 2020-10-31 19:59:24 +0100 |
commit | 8ae23a7fa6202377f957919d763c618859cb0d74 (patch) | |
tree | db8aa409316aba1a69af487d1f809ad305418921 /src/main/java | |
parent | c0ed9cca59eb36477c8efeb4b724fa4be320ff38 (diff) |
KB68 Add privacy policy.
Change-Id: Ib55cd55b2c9f53211ea6c18c2890f715a61d9d9b
Diffstat (limited to 'src/main/java')
-rw-r--r-- | src/main/java/eu/mulk/mulkcms2/cms/privacy/about/PrivacyPolicyResource.java | 22 | ||||
-rw-r--r-- | src/main/java/eu/mulk/mulkcms2/cms/privacy/about/package-info.java | 4 |
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; |