Use go-chi v5
This commit is contained in:
@ -4,12 +4,11 @@ import (
|
||||
oidc "forge.cadoles.com/wpetit/goweb-oidc"
|
||||
"forge.cadoles.com/wpetit/goweb-oidc/internal/config"
|
||||
|
||||
"github.com/go-chi/chi"
|
||||
chi "github.com/go-chi/chi/v5"
|
||||
"gitlab.com/wpetit/goweb/static"
|
||||
)
|
||||
|
||||
func Mount(r *chi.Mux, config *config.Config) error {
|
||||
|
||||
r.With(oidc.HandleCallback).Get("/oauth2/callback", handleLoginCallback)
|
||||
r.Get("/", serveHomePage)
|
||||
r.Get("/logout", handleLogout)
|
||||
|
Reference in New Issue
Block a user