ch7.5
This commit is contained in:
@@ -16,6 +16,6 @@ func (app *application) routes() *httprouter.Router {
|
||||
router.HandlerFunc(http.MethodPost, "/v1/movies", app.createMovieHandler)
|
||||
router.HandlerFunc(http.MethodGet, "/v1/movies/:id", app.showMovieHandler)
|
||||
router.HandlerFunc(http.MethodPut, "/v1/movies/:id", app.updateMovieHandler)
|
||||
|
||||
router.HandlerFunc(http.MethodDelete, "/v1/movies/:id", app.deleteMovieHandler)
|
||||
return router
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user