refactor: rename /visitor-counter to /visit-counter

This commit is contained in:
axolotlmaid 2024-09-26 17:59:13 +01:00
parent 521a634d2e
commit b62f4cd017
4 changed files with 12 additions and 12 deletions

View file

@ -32,8 +32,8 @@ func NewRouter() {
http.Redirect(w, r, "https://axolotlmaid.com", http.StatusPermanentRedirect)
})
r.Get("/visitor-counter", handler.HandleGetVisitorCounter)
r.With(httprate.LimitByRealIP(1, time.Hour)).Patch("/visitor-counter", handler.HandlePatchVisitorCounter)
r.Get("/visit-counter", handler.HandleGetVisitCounter)
r.With(httprate.LimitByRealIP(1, time.Hour)).Patch("/visit-counter", handler.HandlePatchVisitCounter)
r.Get("/currently-playing", handler.HandleGetCurrentlyPlaying)