This commit is contained in:
Lizandro Guarnizo
2026-05-27 09:34:21 -05:00
parent 36c9e0a6d5
commit 498e1d5743
5 changed files with 485 additions and 0 deletions
+12
View File
@@ -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)
}
+3
View File
@@ -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)