diff --git a/routers/api/v1/user/user.go b/routers/api/v1/user/user.go index 50784bc..c2253d9 100644 --- a/routers/api/v1/user/user.go +++ b/routers/api/v1/user/user.go @@ -274,6 +274,18 @@ func DeleteUser(c *fiber.Ctx) error { return c.SendStatus(fiber.StatusOK) } +func GetUsers(c *fiber.Ctx) error { + db := database.DB + + log.Info("here") + + users := []structs.APIUser{} + + db.Model(&structs.User{}).Find(&users) + + return c.JSON(users) +} + /* func GetUsers(c *fiber.Ctx) error {