mirror of https://github.com/1Panel-dev/1Panel
feat: Login to access Swagger documentation (#7496)
parent
cd0cd8a152
commit
d195ce9155
|
@ -175,7 +175,7 @@ func Routers() *gin.Engine {
|
|||
|
||||
swaggerRouter := Router.Group("1panel")
|
||||
docs.SwaggerInfo.BasePath = "/api/v1"
|
||||
swaggerRouter.GET("/swagger/*any", ginSwagger.WrapHandler(swaggerfiles.Handler))
|
||||
swaggerRouter.Use(middleware.JwtAuth()).Use(middleware.SessionAuth()).GET("/swagger/*any", ginSwagger.WrapHandler(swaggerfiles.Handler))
|
||||
PublicGroup := Router.Group("")
|
||||
{
|
||||
PublicGroup.GET("/health", func(c *gin.Context) {
|
||||
|
|
Loading…
Reference in New Issue