diff --git a/app/echoSettings.go b/app/echoSettings.go index a8cf88d..bd79081 100644 --- a/app/echoSettings.go +++ b/app/echoSettings.go @@ -37,6 +37,9 @@ func (a *App) SetEchoSettings() { // }, // })) + // TODO: have this in the config. + e.Use(middleware.RateLimiter(middleware.NewRateLimiterMemoryStore(20))) + e.Use(middleware.Recover()) e.Use(session.Middleware(