Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Refactor routers directory #15800

Merged
merged 17 commits into from
Jun 8, 2021
Prev Previous commit
Next Next commit
make linter happy
6543 authored and lunny committed Jun 8, 2021
commit 71a255efba086d62951b08c0c663805ecda2c276
8 changes: 4 additions & 4 deletions routers/common/cors.go
Original file line number Diff line number Diff line change
@@ -23,9 +23,9 @@ func CorsHandler() func(next http.Handler) http.Handler {
AllowCredentials: setting.CORSConfig.AllowCredentials,
MaxAge: int(setting.CORSConfig.MaxAge.Seconds()),
})
} else {
return func(next http.Handler) http.Handler {
return next
}
}

return func(next http.Handler) http.Handler {
return next
}
}