sk-matrix-project/backend/golang/matrix-middle-service/internel/route/swagger.go
2023-02-26 02:50:56 +08:00

15 lines
294 B
Go

package route
import (
"github.com/gofiber/fiber/v2"
"github.com/gofiber/swagger"
)
func SwaggerHandler(app *fiber.App) {
app.Get("/swagger/*", swagger.New(swagger.Config{
DeepLinking: false,
// Expand ("list") or Collapse ("none") tag groups by default
DocExpansion: "list",
}))
}