Skip to content

Commit

Permalink
router: fix swagger endpoint pattern
Browse files Browse the repository at this point in the history
  • Loading branch information
jeamon committed May 4, 2024
1 parent ffc1bfb commit 7812001
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion api.router.core.go
Original file line number Diff line number Diff line change
Expand Up @@ -14,6 +14,6 @@ func (api *APIHandler) SetupRoutes(router *httprouter.Router, m *MiddlewareMap)
if api.config.OpsEndpointsEnable {
api.SetupOpsRoutes(router, m)
}
router.GET("/swagger/*", m.public(api.OpsHandlerWrapper(httpswagger.WrapHandler)))
router.GET("/swagger/", m.public(api.OpsHandlerWrapper(httpswagger.WrapHandler)))
return router
}

0 comments on commit 7812001

Please sign in to comment.