summaryrefslogtreecommitdiff
path: root/internal/router/basic-handler.go
diff options
from:
to:
context:
space:
mode:
authorGravatar SayaAndy <saya.andy@posteo.com> 2026-05-02 14:29:55 +0700
committerGravatar SayaAndy <saya.andy@posteo.com> 2026-05-02 14:29:55 +0700
commitca1f36376865cb2a20923aa62fdff3ee217abde3 (patch)
tree2e3676489327505dd2b4d53023ca0da6fc2dc5a2 /internal/router/basic-handler.go
parent3898baa47faf268864ecac3699f7e98c6cac01a4 (diff)
downloadweb-ca1f36376865cb2a20923aa62fdff3ee217abde3.tar.gz
web-ca1f36376865cb2a20923aa62fdff3ee217abde3.zip
feat: implement rate limiting
Diffstat (limited to 'internal/router/basic-handler.go')
-rw-r--r--internal/router/basic-handler.go4
1 files changed, 4 insertions, 0 deletions
diff --git a/internal/router/basic-handler.go b/internal/router/basic-handler.go
index b973d01..68d305c 100644
--- a/internal/router/basic-handler.go
+++ b/internal/router/basic-handler.go
@@ -42,6 +42,10 @@ func (r *BasicHandler) ContentType() string {
return fiber.MIMETextHTMLCharsetUTF8
}
+func (r *BasicHandler) RateLimiter() *fiber.Handler {
+ return nil
+}
+
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)")