feat(gitops): add api for workflows [BE-12805] (#2273)

Co-authored-by: Claude Sonnet 4.6 <noreply@anthropic.com>
This commit is contained in:
Chaim Lev-Ari
2026-04-14 13:25:37 +03:00
committed by GitHub
parent 218b5d5900
commit 7708ace1d8
+4 -2
View File
@@ -27,8 +27,10 @@ func NewHandler(bouncer security.BouncerService, dataStore dataservices.DataStor
fileService: fileService,
}
h.Handle("/gitops/repo/file/preview",
bouncer.AuthenticatedAccess(httperror.LoggerHandler(h.gitOperationRepoFilePreview))).Methods(http.MethodPost)
authenticatedRouter := h.NewRoute().Subrouter()
authenticatedRouter.Use(bouncer.AuthenticatedAccess)
authenticatedRouter.Handle("/gitops/repo/file/preview", httperror.LoggerHandler(h.gitOperationRepoFilePreview)).Methods(http.MethodPost)
return h
}