This commit is contained in:
lbenedar
2026-03-18 13:37:10 +03:00
parent 63f6d49221
commit 9c42c7ccbf
3 changed files with 46 additions and 1 deletions

View File

@@ -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
}