This commit is contained in:
lbenedar
2026-03-24 16:46:07 +03:00
parent 338ef680ba
commit 8b270bbc0e
2 changed files with 19 additions and 0 deletions

View File

@@ -1,6 +1,7 @@
package main
import (
"expvar"
"net/http"
"github.com/julienschmidt/httprouter"
@@ -25,5 +26,7 @@ func (app *application) routes() http.Handler {
router.HandlerFunc(http.MethodPost, "/v1/tokens/authentication", app.createAuthenticationTokenHandler)
router.Handler(http.MethodGet, "/debug/vars", expvar.Handler())
return app.recoverPanic(app.enableCORS(app.rateLimit(app.authenticate(router))))
}