iptables-helper/internel/route/swagger.go

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",
}))
}