refactor: rename visitor counter to hit counter

This commit is contained in:
trafficlunar 2025-03-20 22:31:39 +00:00
parent 38b93391a1
commit 32aea2cbd5
4 changed files with 12 additions and 12 deletions

View file

@ -46,8 +46,8 @@ func NewRouter() {
http.Redirect(w, r, "https://trafficlunar.net", http.StatusPermanentRedirect)
})
r.Get("/visit", handler.HandleGetVisitCounter)
r.With(httprate.LimitByRealIP(1, time.Hour)).Patch("/visit", handler.HandlePatchVisitCounter)
r.Get("/hit", handler.HandleGetHitCounter)
r.With(httprate.LimitByRealIP(1, time.Hour)).Patch("/hit", handler.HandlePatchHitCounter)
r.Get("/song", handler.HandleGetCurrentlyPlaying)
r.Get("/computer", handler.HandleComputerGraphData)
r.Get("/computer/ws", handler.HandleComputerWebSocket)