summaryrefslogtreecommitdiffci
path: root/internal/router/router.go
diff options
from:
to:
context:
space:
mode:
authorGravatar Saya Andy <saya.andy@posteo.com> 2026-08-27 00:24:11 +0700
committerGravatar Saya Andy <saya.andy@posteo.com> 2026-08-27 00:24:11 +0700
commit4600838b7a0c7b430f1f3ef3a5c86d2b29ee90c3 (patch)
treeb8cb4b32a0eab68d5bfcf1b1fe19c1bf1b9b2a39 /internal/router/router.go
parent4bdcac0a88d0510df9cdef2e99bee20370fe219b (diff)
downloadweb-stage.tar.gz
web-stage.zip
fix: malfunctioning rate limitingstage
Diffstat (limited to 'internal/router/router.go')
-rw-r--r--internal/router/router.go4
1 files changed, 2 insertions, 2 deletions
diff --git a/internal/router/router.go b/internal/router/router.go
index a11a934..2869851 100644
--- a/internal/router/router.go
+++ b/internal/router/router.go
@@ -80,7 +80,7 @@ type Route interface {
TemplatesToInject() []string
SitemapInfo(supplements *Supplements) []SitemapInfo
ContentType() string
- RateLimiter() *fiber.Handler
+ RateLimiter() fiber.Handler
Render(c *fiber.Ctx, supplements *Supplements, lang string, templateMap fiber.Map) (statusCode int, err error)
AddMeta(c *fiber.Ctx, supplements *Supplements, lang string, templateMap fiber.Map) (meta []MetaField, err error)
AddLinkedData(c *fiber.Ctx, supplements *Supplements, lang string, templateMap fiber.Map) (ld map[string]any, err error)
@@ -262,7 +262,7 @@ func (r *Router) InitRoutes() (err error) {
}
if rateLimiter := route.RateLimiter(); rateLimiter != nil {
- r.app.Use(match, *rateLimiter)
+ r.app.Use(match, rateLimiter)
}
if route.IsTemplated() {