mirror of
https://github.com/woodpecker-ci/woodpecker.git
synced 2025-09-19 00:51:25 +00:00
Allow to disable swagger (#2093)
https://github.com/woodpecker-ci/woodpecker/issues/1944
This commit is contained in:
@@ -69,7 +69,9 @@ func Load(noRouteHandler http.HandlerFunc, middleware ...gin.HandlerFunc) http.H
|
||||
e.GET("/healthz", api.Health)
|
||||
|
||||
apiRoutes(e)
|
||||
setupSwaggerConfigAndRoutes(e)
|
||||
if server.Config.Server.EnableSwagger {
|
||||
setupSwaggerConfigAndRoutes(e)
|
||||
}
|
||||
|
||||
return e
|
||||
}
|
||||
|
Reference in New Issue
Block a user