feat: add httprate to /visitor-counter

This commit is contained in:
axolotlmaid 2024-09-26 17:54:29 +01:00
parent 0ea533e3c1
commit 521a634d2e

View file

@ -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)