up
This commit is contained in:
@@ -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})
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user