Version 0.2.0
Changes: - forbid to overwrite secrets of other users - add some logs of success - add validation on code (length 50) - use same limiter for POST requests
This commit is contained in:
@@ -41,7 +41,7 @@ func RunServer(ctx context.Context, appConfig config.Config) error {
|
||||
|
||||
limiter := ratelimit.NewLimiter(appConfig.RateLimit.MaxFailures, appConfig.RateLimit.Window)
|
||||
|
||||
router, err := httpserver.New(secrets, users, limiter, appMetrics, appConfig.Server.TrustedProxies)
|
||||
router, err := httpserver.New(secrets, users, limiter, appMetrics, appConfig.Server.TrustedProxies, logger)
|
||||
if err != nil {
|
||||
return fmt.Errorf("error on building http router: %w", err)
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user