diff --git a/auth/go.mod b/auth/go.mod index a00fea35..4e22b2e6 100644 --- a/auth/go.mod +++ b/auth/go.mod @@ -1,6 +1,6 @@ module github.com/zoriya/kyoo/keibi -go 1.25.0 +go 1.26.0 toolchain go1.26.0 diff --git a/auth/main.go b/auth/main.go index 73d82c87..16299045 100644 --- a/auth/main.go +++ b/auth/main.go @@ -354,8 +354,7 @@ func main() { r.POST("/keys", h.CreateApiKey) r.DELETE("/keys/:id", h.DeleteApiKey) - g.GET("/jwt", h.CreateJwt) - g.POST("/jwt", h.CreateJwt) + g.Any("/jwt", h.CreateJwt) g.Any("/jwt/*", h.CreateJwt) e.GET("/.well-known/jwks.json", h.GetJwks) e.GET("/.well-known/openid-configuration", h.GetOidcConfig)