mirror of
https://github.com/trafficlunar/api.git
synced 2026-06-27 22:24:08 +00:00
refactor: rename visitor counter to hit counter
This commit is contained in:
parent
38b93391a1
commit
32aea2cbd5
4 changed files with 12 additions and 12 deletions
|
|
@ -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)
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue