diff --git a/internal/server/router.go b/internal/server/router.go index f16ec2b..2caf584 100644 --- a/internal/server/router.go +++ b/internal/server/router.go @@ -33,7 +33,7 @@ func NewRouter() { }) r.Get("/visitor-counter", handler.HandleGetVisitorCounter) - r.Patch("/visitor-counter", handler.HandlePatchVisitorCounter) + r.With(httprate.LimitByRealIP(1, time.Hour)).Patch("/visitor-counter", handler.HandlePatchVisitorCounter) r.Get("/currently-playing", handler.HandleGetCurrentlyPlaying)