This commit is contained in:
lbenedar
2026-03-19 14:52:32 +03:00
parent 6736c24e19
commit 471393fa04
6 changed files with 78 additions and 1 deletions

View File

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