This commit is contained in:
lbenedar
2026-03-18 13:16:06 +03:00
parent 0a8a1602a6
commit 63f6d49221
3 changed files with 70 additions and 2 deletions

View File

@@ -15,6 +15,7 @@ func (app *application) routes() *httprouter.Router {
router.HandlerFunc(http.MethodGet, "/v1/healthcheck", app.healthcheckHandler)
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)
return router
}