diff options
Diffstat (limited to 'src/main/java/eu')
-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; |