diff options
author | Matthias Andreas Benkard <code@mail.matthias.benkard.de> | 2020-03-01 12:04:14 +0100 |
---|---|---|
committer | Matthias Andreas Benkard <code@mail.matthias.benkard.de> | 2020-03-01 12:04:14 +0100 |
commit | aa659da0337ea13c6add4117fd7bbd9b158f63a7 (patch) | |
tree | fa741bd3946fe566a41a32d31c25db53ef059fdf /src/main/java | |
parent | 781dcbb406a5e0ad93ab746abee021e750699d43 (diff) |
Add contact information.
Change-Id: If94f79fa2e51c8cb7a9c8b63524ff992395aa96f
Diffstat (limited to 'src/main/java')
-rw-r--r-- | src/main/java/eu/mulk/mulkcms2/cms/about/AboutResource.java | 23 |
1 files changed, 23 insertions, 0 deletions
diff --git a/src/main/java/eu/mulk/mulkcms2/cms/about/AboutResource.java b/src/main/java/eu/mulk/mulkcms2/cms/about/AboutResource.java new file mode 100644 index 0000000..39ecaca --- /dev/null +++ b/src/main/java/eu/mulk/mulkcms2/cms/about/AboutResource.java @@ -0,0 +1,23 @@ +package eu.mulk.mulkcms2.cms.about; + +import static javax.ws.rs.core.MediaType.TEXT_HTML; + +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; + +@Path("/about") +public class AboutResource { + + @ResourcePath("benki/about/index.html") + Template index; + + @GET + @Produces(TEXT_HTML) + public TemplateInstance getIndex() { + return index.instance(); + } +} |