Skip to content

Commit

Permalink
test db in prod server
Browse files Browse the repository at this point in the history
  • Loading branch information
Kervin Christianata committed Mar 12, 2022
1 parent f6f06db commit 8543564
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions cmd/api/routes.go
Original file line number Diff line number Diff line change
Expand Up @@ -35,6 +35,7 @@ func (app *application) routes() http.Handler {

// Movies
router.HandlerFunc(http.MethodGet, "/cms/movies", app.requireActivatedUser(app.listMoviesHandler))
router.HandlerFunc(http.MethodGet, "/cms/free/movies", app.listMoviesHandler)
// router.HandlerFunc(http.MethodGet, "/movies", app.listMoviesHandler)
router.HandlerFunc(http.MethodPost, "/cms/movies", app.requirePermission("movies:write", app.createMovieHandler))
router.HandlerFunc(http.MethodGet, "/cms/movies/:id", app.requireActivatedUser(app.showMovieHandler))
Expand Down

0 comments on commit 8543564

Please sign in to comment.