1
0
Fork 0
mirror of https://github.com/portainer/portainer.git synced 2025-07-23 15:29:42 +02:00

fix(api): add missing public access middleware to routes EE-5191 (#9086)

This commit is contained in:
matias-portainer 2023-07-07 17:37:42 -03:00 committed by GitHub
parent 801b7d43ee
commit 29c1862754
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23
2 changed files with 3 additions and 3 deletions

View file

@ -81,7 +81,7 @@ func NewHandler(bouncer security.BouncerService) *Handler {
h.Handle("/stacks/{id}/stop",
bouncer.AuthenticatedAccess(httperror.LoggerHandler(h.stackStop))).Methods(http.MethodPost)
h.Handle("/stacks/webhooks/{webhookID}",
httperror.LoggerHandler(h.webhookInvoke)).Methods(http.MethodPost)
bouncer.PublicAccess(httperror.LoggerHandler(h.webhookInvoke))).Methods(http.MethodPost)
return h
}