feat(hostinger): VPS actions, DNS editing, domain lock/privacy, nameservers, auto-renewal

This commit is contained in:
Lizandro Guarnizo
2026-05-14 20:42:57 -05:00
parent abecb9b305
commit 8343101525
4 changed files with 747 additions and 6 deletions
+19
View File
@@ -117,8 +117,27 @@ func UserRoutes(app fiber.Router) {
protected.Get("/hostinger/vps", controllers.GetHostingerVPS)
protected.Get("/hostinger/domains", controllers.GetHostingerDomains)
protected.Get("/hostinger/dns/:domain", controllers.GetHostingerDNS)
protected.Put("/hostinger/dns/:domain", controllers.UpdateHostingerDNS)
protected.Post("/hostinger/dns/:domain/reset", controllers.ResetHostingerDNS)
protected.Get("/hostinger/orders", controllers.GetHostingerOrders)
protected.Get("/hostinger/hosting", controllers.GetHostingerHosting)
// Domains: escritura
protected.Put("/hostinger/domains/:domain/nameservers", controllers.UpdateHostingerNameservers)
protected.Put("/hostinger/domains/:domain/domain-lock", controllers.EnableHostingerDomainLock)
protected.Delete("/hostinger/domains/:domain/domain-lock", controllers.DisableHostingerDomainLock)
protected.Put("/hostinger/domains/:domain/privacy", controllers.EnableHostingerPrivacy)
protected.Delete("/hostinger/domains/:domain/privacy", controllers.DisableHostingerPrivacy)
// VPS: acciones
protected.Post("/hostinger/vps/:id/start", controllers.StartHostingerVPS)
protected.Post("/hostinger/vps/:id/stop", controllers.StopHostingerVPS)
protected.Post("/hostinger/vps/:id/restart", controllers.RestartHostingerVPS)
protected.Put("/hostinger/vps/:id/root-password", controllers.SetHostingerVPSRootPassword)
protected.Put("/hostinger/vps/:id/hostname", controllers.SetHostingerVPSHostname)
protected.Get("/hostinger/vps/:id/metrics", controllers.GetHostingerVPSMetrics)
protected.Get("/hostinger/vps/:id/backups", controllers.GetHostingerVPSBackups)
// Billing: autorenovación
protected.Patch("/hostinger/billing/:id/auto-renewal/enable", controllers.EnableHostingerAutoRenewal)
protected.Delete("/hostinger/billing/:id/auto-renewal/disable", controllers.DisableHostingerAutoRenewal)
// ─── Cloudflare API ───────────────────────────────────────────────
protected.Get("/cloudflare", middlewares.MenuMiddleware, controllers.CloudflareConfigPage)