This commit is contained in:
Lizandro Guarnizo
2026-06-04 22:49:16 -05:00
parent 72744a1325
commit 7329bac898
8 changed files with 176 additions and 18 deletions
+9
View File
@@ -125,3 +125,12 @@ func DeleteConxDb(c *fiber.Ctx) error {
"message": "conx ssh eliminado exitosamente",
})
}
func GetConxDbSelect(c *fiber.Ctx) error {
servidorID := c.Query("servidor_id")
items, err := models.GetConxDbSelect(servidorID)
if err != nil {
return c.Status(fiber.StatusInternalServerError).JSON(fiber.Map{"error": err.Error()})
}
return c.JSON(fiber.Map{"registros": items})
}