diff --git a/cmd/appview/serve.go b/cmd/appview/serve.go index 6bf6c14..1bce3a8 100644 --- a/cmd/appview/serve.go +++ b/cmd/appview/serve.go @@ -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{ diff --git a/pkg/auth/token/handler.go b/pkg/auth/token/handler.go index 88110bf..ea83519 100644 --- a/pkg/auth/token/handler.go +++ b/pkg/auth/token/handler.go @@ -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) -}