package api import ( _ "embed" "github.com/gofiber/fiber/v2" ) //go:embed docs/openapi.yaml var openapiSpec []byte func RegisterSwagger(app *fiber.App) { app.Get("/docs/openapi.yaml", func(c *fiber.Ctx) error { c.Set("Content-Type", "application/yaml") return c.Send(openapiSpec) }) app.Get("/docs", func(c *fiber.Ctx) error { c.Set("Content-Type", "text/html") return c.SendString(swaggerHTML) }) } const swaggerHTML = `