This commit is contained in:
Lizandro Guarnizo
2026-05-01 12:22:58 -05:00
parent 33899bb6ae
commit 80beec57a8
3 changed files with 21 additions and 11 deletions
+5 -3
View File
@@ -12,10 +12,12 @@ import (
func HostingerConfigPage(c *fiber.Ctx) error {
cfg, _ := models.GetHostingerConfig()
if err := c.Render("hostinger", fiber.Map{
"Title": "Hostinger API",
"Config": cfg,
"Title": "Hostinger API",
"Config": cfg,
"user": c.Locals("user"),
"modules": c.Locals("userModules"),
}, "layouts/main"); err != nil {
return c.SendStatus(fiber.StatusInternalServerError)
return c.Status(fiber.StatusInternalServerError).JSON(fiber.Map{"error": err.Error()})
}
return nil
}