aboutsummaryrefslogtreecommitdiffhomepage
path: root/backend/main.go
diff options
context:
space:
mode:
Diffstat (limited to 'backend/main.go')
-rw-r--r--backend/main.go1
1 files changed, 1 insertions, 0 deletions
diff --git a/backend/main.go b/backend/main.go
index 3ea4493..e74a62f 100644
--- a/backend/main.go
+++ b/backend/main.go
@@ -99,6 +99,7 @@ func main() {
loginRL := ratelimit.NewIPRateLimiter(rate.Every(time.Minute/5), 5)
apiGroup := e.Group(conf.BasePath + "api")
+ apiGroup.Use(api.ClientIPMiddleware())
apiGroup.Use(ratelimit.LoginRateLimitMiddleware(loginRL))
apiGroup.Use(api.SessionCookieMiddleware(queries))
apiGroup.Use(oapimiddleware.OapiRequestValidator(openAPISpec))