mirror of
https://github.com/nais/wonderwall.git
synced 2026-05-08 01:17:21 +00:00
feat(router): handle HEAD requests for some routes
This commit is contained in:
@@ -75,13 +75,18 @@ func New(src Source, cfg *config.Config) chi.Router {
|
||||
Options(paths.Logout, noopHandler)
|
||||
}
|
||||
r.Get(paths.Login, src.Login)
|
||||
r.Get(paths.LoginCallback, src.LoginCallback)
|
||||
r.Head(paths.Login, src.Login)
|
||||
|
||||
r.Get(paths.Logout, src.Logout)
|
||||
r.Head(paths.Logout, src.Logout)
|
||||
|
||||
r.Get(paths.LoginCallback, src.LoginCallback)
|
||||
r.Get(paths.LogoutCallback, src.LogoutCallback)
|
||||
r.Get(paths.LogoutFrontChannel, src.LogoutFrontChannel)
|
||||
|
||||
if cfg.OpenID.Provider != config.ProviderIDPorten {
|
||||
r.Get(paths.LogoutLocal, src.LogoutLocal)
|
||||
r.Head(paths.LogoutLocal, src.LogoutLocal)
|
||||
}
|
||||
|
||||
r.Get(paths.Ping, func(w http.ResponseWriter, r *http.Request) {
|
||||
|
||||
Reference in New Issue
Block a user