ch11
This commit is contained in:
@@ -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))
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user