feat: Adding openapi generated without server just models

This commit is contained in:
Josepablo C.
2025-12-07 23:22:40 -06:00
parent 8787ece0d0
commit a95c4d023e
3 changed files with 7 additions and 89 deletions

View File

@@ -6,7 +6,6 @@ import (
"github.com/gofiber/fiber/v2/middleware/helmet"
"github.com/gofiber/fiber/v2/middleware/logger"
"cloud.etaviaporte.com/api/libs/openapi"
"cloud.etaviaporte.com/api/libs/services/auth"
)
@@ -30,7 +29,13 @@ func main() {
return c.SendString("Hello, World!")
})
openapi.RegisterHandlers(app, auth.Handler{})
handler := auth.Handler{}
// openapi.RegisterHandlers(app, auth.Handler{})
app.Post("/auth/login", handler.PostAuthLogin)
app.Post("/auth/logout", handler.PostAuthLogout)
app.Get("/auth/me", handler.GetAuthMe)
app.Post("/auth/refresh", handler.PostAuthRefresh)
app.Listen(":3000")
}