This commit is contained in:
lbenedar
2026-03-19 17:21:50 +03:00
parent 67360b7430
commit bd9f1369a0
3 changed files with 64 additions and 3 deletions

View File

@@ -20,5 +20,7 @@ func (app *application) routes() http.Handler {
router.HandlerFunc(http.MethodPatch, "/v1/movies/:id", app.updateMovieHandler)
router.HandlerFunc(http.MethodDelete, "/v1/movies/:id", app.deleteMovieHandler)
router.HandlerFunc(http.MethodPost, "/v1/users", app.registerUserHandler)
return app.recoverPanic(app.rateLimit(router))
}