// GetUsers to get all users
GetUsers to get all users
// GetUsers to get all users
func (UserController) GetUsers(c *gin.Context) {
	_, exists := c.Get(store.CurrentKey)
	if exists {
		users, err := store.GetUsers(c, "")
		if err != nil {
			helpers.NewError(http.StatusNotFound, "users_not_found", "Users not found", err)
		}
		c.JSON(http.StatusOK, users)
	}
}
func ( UserController ) GetUsers ( c * gin . Context ) { _ , exists := c . Get ( store . CurrentKey ) if exists { users , err := store . GetUsers ( c , " " ) if err != nil { helpers . NewError ( http . StatusNotFound , " " , " " , err ) } c . JSON ( http . StatusOK , users ) } }
GetUsers to get all users
GetUsers to get all users