Skip to content

Commit

Permalink
Fix endpoint path (#4876)
Browse files Browse the repository at this point in the history
Signed-off-by: Thomas Quandt <[email protected]>
  • Loading branch information
thquad authored and richard-cox committed Apr 16, 2021
1 parent 89ba665 commit 98b91f3
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/jetstream/main.go
Original file line number Diff line number Diff line change
Expand Up @@ -1129,7 +1129,7 @@ func (p *portalProxy) registerRoutes(e *echo.Echo, needSetupMiddleware bool) {
// Use middleware in route directly, because documentation is faulty
// Apply middleware to group with .Use() when this issue is resolved:
// https://github.com/labstack/echo/issues/1519
stableEndpointAdminAPIGroup.POST("/endpoints:id", p.updateEndpoint, p.endpointUpdateDeleteMiddleware)
stableEndpointAdminAPIGroup.POST("/endpoints/:id", p.updateEndpoint, p.endpointUpdateDeleteMiddleware)
stableEndpointAdminAPIGroup.DELETE("/endpoints/:id", p.unregisterCluster, p.endpointUpdateDeleteMiddleware)
} else {
stableEndpointAdminAPIGroup.Use(p.adminMiddleware)
Expand Down

0 comments on commit 98b91f3

Please sign in to comment.