fix: compilar agent/dist en builder stage y agregar módulos contabilidad/websms

Co-Authored-By: Claude Sonnet 4.6 <noreply@anthropic.com>
This commit is contained in:
Lizandro Guarnizo
2026-06-20 10:13:17 -05:00
co-authored by Claude Sonnet 4.6
parent ca6a44f64e
commit e28e2823dc
18 changed files with 2889 additions and 0 deletions
+5
View File
@@ -37,6 +37,11 @@ func RutasPublicas(web fiber.Router) {
// Configurar en el bot: POST https://api.telegram.org/bot{TOKEN}/setWebhook?url={HOST}/webhooks/telegram-portal
web.Post("/webhooks/telegram-portal", controllers.TelegramPortalWebhook)
// ─── WebSMS (LabsMobile) — ACK de entrega, clics y mensajes entrantes ──
web.Post("/webhooks/websms/delivery", controllers.WebSmsDeliveryWebhook)
web.Post("/webhooks/websms/click", controllers.WebSmsClickWebhook)
web.Post("/webhooks/websms/incoming", controllers.WebSmsIncomingWebhook)
// ─── Agente de monitoreo de servidores ────────────────────────────────────
// El agente instalado en cada servidor reporta métricas aquí (sin sesión, auth por token).
web.Post("/agent/heartbeat", controllers.AgentHeartbeat)
+8
View File
@@ -453,6 +453,14 @@ func UserRoutes(app fiber.Router) {
protected.Put("/mis-notifs/:id/leida", controllers.MarcarNotifLeida)
protected.Post("/mis-notifs/marcar-todas", controllers.MarcarTodasLeidas)
// ─── WebSMS (LabsMobile) ───────────────────────────────────────────────────
protected.Get("/websms", middlewares.MenuMiddleware, controllers.WebSmsConfigPage)
protected.Get("/websms/config", controllers.GetWebSmsConfig)
protected.Post("/websms/save", controllers.SaveWebSmsConfig)
protected.Post("/websms/test", controllers.TestWebSms)
protected.Get("/websms/logs", controllers.GetWebSmsLogs)
protected.Get("/websms/webhook-logs", controllers.GetWebSmsWebhookLogs)
// ─── Planes dLocal (gestión desde panel protegido) ────────────────────────
protected.Get("/dlocal/planes", apiControllers.SeePlanes)
protected.Post("/dlocal/planes", apiControllers.CreatePlan)