up
This commit is contained in:
@@ -62,4 +62,16 @@ func RutasPublicas(web fiber.Router) {
|
||||
})
|
||||
// ─── Página de estado del sistema (Atlassian Statuspage) ────────────────
|
||||
web.Get("/status", controllers.StatusPage)
|
||||
|
||||
// ─── Landing Generator (acceso con X-Landing-Secret) ─────────────────────
|
||||
// Rutas públicas (sin secret) para lectura de preview y polling
|
||||
web.Get("/landing/preview/:token", apiControllers.LandingGetSession)
|
||||
web.Get("/landing/poll/:token", apiControllers.LandingPollPayment)
|
||||
// Rutas internas (requieren X-Landing-Secret del Next.js)
|
||||
web.Post("/landing/session", apiControllers.LandingCreateSession)
|
||||
web.Post("/landing/chat", apiControllers.LandingChat)
|
||||
web.Post("/landing/generate", apiControllers.LandingGenerate)
|
||||
web.Post("/landing/payment", apiControllers.LandingCreatePayment)
|
||||
web.Get("/landing/answers/:token", apiControllers.LandingGetAnswers)
|
||||
web.Get("/landing/download/:token", apiControllers.LandingDownload)
|
||||
}
|
||||
|
||||
@@ -235,6 +235,9 @@ func UserRoutes(app fiber.Router) {
|
||||
protected.Post("/pasarelas/bold/crear-link", apiControllers.BoldCreatePaymentLink)
|
||||
protected.Get("/pasarelas/bold/link/:linkID", apiControllers.BoldGetLinkStatus)
|
||||
|
||||
// ─── Landing Generator (admin) ────────────────────────────────────────────
|
||||
protected.Get("/landing-pages", middlewares.MenuMiddleware, apiControllers.LandingAdminList)
|
||||
|
||||
// ─── Productos SaaS ──────────────────────────────────────────────────────
|
||||
protected.Get("/saas", middlewares.MenuMiddleware, controllers.SaasIndex)
|
||||
protected.Get("/loadsaas", controllers.GetSaasProductos)
|
||||
|
||||
Reference in New Issue
Block a user