Skip to content

Commit

Permalink
feat: Login to access Swagger documentation (#7496)
Browse files Browse the repository at this point in the history
  • Loading branch information
lan-yonghui authored Dec 20, 2024
1 parent cd0cd8a commit d195ce9
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion backend/init/router/router.go
Original file line number Diff line number Diff line change
Expand Up @@ -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) {
Expand Down

0 comments on commit d195ce9

Please sign in to comment.