feat: add httprate to /visitor-counter
This commit is contained in:
parent
0ea533e3c1
commit
521a634d2e
1 changed files with 1 additions and 1 deletions
|
|
@ -33,7 +33,7 @@ func NewRouter() {
|
||||||
})
|
})
|
||||||
|
|
||||||
r.Get("/visitor-counter", handler.HandleGetVisitorCounter)
|
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)
|
r.Get("/currently-playing", handler.HandleGetCurrentlyPlaying)
|
||||||
|
|
||||||
|
|
|
||||||
Loading…
Reference in a new issue