diff --git a/main.go b/main.go index 8b3f1fc..ef24fab 100644 --- a/main.go +++ b/main.go @@ -91,6 +91,11 @@ func main() { db := config.InitDB(false) /* ---------- PUBLIC ROUTES (no API key) ---------- */ + // Redirect root to swagger docs + app.Get("/", func(c *fiber.Ctx) error { + return c.Redirect("/swagger/index.html") + }) + app.Get("/metrics", adaptor.HTTPHandler(promhttp.Handler())) app.Get("/swagger/*", fiberswagger.WrapHandler) controllers.RegisterKeyAdminRoutes(app, db)