diff --git a/api/router/api/middleware.go b/api/router/api/middleware.go index a7a1f37c..e444a8f7 100644 --- a/api/router/api/middleware.go +++ b/api/router/api/middleware.go @@ -31,7 +31,9 @@ func rootMw() []app.HandlerFunc { func _apiMw() []app.HandlerFunc { // your code... - return nil + return []app.HandlerFunc{ + middleware.RateLimit(0.5, 1), + } } func _v1Mw() []app.HandlerFunc {