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