feat: add /status route

This commit is contained in:
trafficlunar 2024-10-06 13:38:26 +01:00
parent 7a8a229f0e
commit aaa8640aaf
7 changed files with 122 additions and 3 deletions

View file

@ -38,8 +38,8 @@ func NewRouter() {
r.Get("/visit-counter", handler.HandleGetVisitCounter)
r.With(httprate.LimitByRealIP(1, time.Hour)).Patch("/visit-counter", handler.HandlePatchVisitCounter)
r.Get("/currently-playing", handler.HandleGetCurrentlyPlaying)
r.Get("/status", handler.HandleGetStatus)
port := os.Getenv("PORT")
if len(port) == 0 {