feat: Adding openapi generated without server just models
This commit is contained in:
@@ -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")
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user