feat: token creation, email templace change, activate user endpoint

This commit is contained in:
2026-04-09 14:05:09 +02:00
parent 120c12a1f1
commit a7cdb9efb1
8 changed files with 300 additions and 15 deletions
+1 -1
View File
@@ -24,7 +24,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)
router.HandlerFunc(http.MethodPut, "/v1/users/activated", app.activateUserHandler)
// Wrap the router with the rateLimit() middleware.
return app.recoverPanic(app.rateLimit(router))
}