fix: Fixed endpoint
Server Deploy / deploy (push) Successful in 1m20s

This commit is contained in:
domrichardson
2026-07-03 11:56:49 +01:00
parent 7c30d26878
commit 73a06227ba
4 changed files with 10 additions and 7 deletions
+5 -2
View File
@@ -24,8 +24,11 @@ func RegisterRoutes(r *gin.Engine) {
r.GET("/update", handleUpdateScript)
// ESO read endpoint — bearer-token auth, not session auth, so Kubernetes
// External Secrets Operator can call it. Returns a group as flat JSON.
r.GET("/secrets/:group", secretsReadAuth(), esoGetGroup)
// External Secrets Operator can call it. Lives under /api (so the reverse
// proxy routes it to the backend) but on a distinct subpath to avoid
// colliding with the session-authed GET /api/secrets/:group. Returns a
// group as flat JSON.
r.GET("/api/secrets/:group/values", secretsReadAuth(), esoGetGroup)
// Auth endpoints (no session required)
r.GET("/auth/login", auth.HandleLogin)