auth/token needs GET

This commit is contained in:
Evan Jarrett
2025-10-25 19:42:54 -05:00
parent 162d91d079
commit c831d3f735
2 changed files with 1 additions and 6 deletions
+1 -1
View File
@@ -393,7 +393,7 @@ func serveRegistry(cmd *cobra.Command, args []string) error {
return nil // All errors are non-fatal
})
mainRouter.Post("/auth/token", tokenHandler.ServeHTTP)
mainRouter.Get("/auth/token", tokenHandler.ServeHTTP)
// Device authorization endpoints (public)
mainRouter.Handle("/auth/device/code", &uihandlers.DeviceCodeHandler{
-5
View File
@@ -213,8 +213,3 @@ func (h *Handler) ServeHTTP(w http.ResponseWriter, r *http.Request) {
return
}
}
// RegisterRoutes registers the token handler with the provided mux
func (h *Handler) RegisterRoutes(mux *http.ServeMux) {
mux.Handle("/auth/token", h)
}