summaryrefslogtreecommitdiffci
path: root/internal/router/basic-handler.go
diff options
from:
to:
context:
space:
mode:
authorGravatar SayaAndy <saya.andy@posteo.com> 2026-03-30 23:25:59 +0700
committerGravatar SayaAndy <saya.andy@posteo.com> 2026-03-30 23:25:59 +0700
commit7a40c01dd14f04787f5052d0c89e0d6fb9ce597f (patch)
tree4edc2d756295cbbf1f935a5f681b6be69b5584b4 /internal/router/basic-handler.go
parent52fbb4a4eb781dd4ba66fae0e1ceaec6721758f5 (diff)
downloadweb-7a40c01dd14f04787f5052d0c89e0d6fb9ce597f.tar.gz
web-7a40c01dd14f04787f5052d0c89e0d6fb9ce597f.zip
feat: build sitemap.xml
Diffstat (limited to 'internal/router/basic-handler.go')
-rw-r--r--internal/router/basic-handler.go8
1 files changed, 8 insertions, 0 deletions
diff --git a/internal/router/basic-handler.go b/internal/router/basic-handler.go
index 4a94a48..98a7d84 100644
--- a/internal/router/basic-handler.go
+++ b/internal/router/basic-handler.go
@@ -34,6 +34,14 @@ func (r *BasicHandler) TemplatesToInject() []string {
return []string{}
}
+func (r *BasicHandler) SitemapInfo(supplements *Supplements) []SitemapInfo {
+ return nil
+}
+
+func (r *BasicHandler) ContentType() string {
+ return fiber.MIMETextHTMLCharsetUTF8
+}
+
func (r *BasicHandler) Render(c *fiber.Ctx, supplements *Supplements, lang string, templateMap fiber.Map) (statusCode int, err error) {
if !r.IsTemplated() {
panic("handler did not implement Render method (while being non-templated)")