feat: rate limiter, users table, validation, servers split up, graceful quit, user functions

This commit is contained in:
2026-03-25 08:57:50 +01:00
parent 7d81d1505a
commit 095f7aabeb
12 changed files with 449 additions and 54 deletions
+2 -1
View File
@@ -24,5 +24,6 @@ func (app *application) routes() http.Handler {
router.HandlerFunc(http.MethodPatch, "/v1/movies/:id", app.updateMovieHandler)
router.HandlerFunc(http.MethodDelete, "/v1/movies/:id", app.deleteMovieHandler)
return app.recoverPanic(router)
// Wrap the router with the rateLimit() middleware.
return app.recoverPanic(app.rateLimit(router))
}