diff --git a/routers/api/v1/users/users.go b/routers/api/v1/users/users.go index 928c086..700e57b 100644 --- a/routers/api/v1/users/users.go +++ b/routers/api/v1/users/users.go @@ -43,46 +43,6 @@ func GetAllUsers(c *fiber.Ctx) error { return c.JSON(structs.UsersResponse{Users: nUsers}) } -/* -func GetUserProfile(c *fiber.Ctx) error { - // swagger:operation GET /users/:userId users usersGetUserProfile - // --- - // summary: Get the profile from a user - // consumes: - // - application/json - // produces: - // - application/json - // responses: - // '200': - // schema: - // "$ref": "#/definitions/UserResponse" - // '400': - // description: Internal userId specified - // '500': - // description: Internal server error - - userId := c.Params("userId") - - if len(userId) != utils.LenUserId { - return c.SendStatus(fiber.StatusBadRequest) - } - - foundUser := structs.User{Id: userId} - - q := scylladb.Session.Query(scylladb.Users.Get()).BindStruct(foundUser) - - if err := q.GetRelease(&foundUser); err != nil { - logrus.Println("Failed to get user, err:", err) - return c.SendStatus(fiber.StatusUnprocessableEntity) - } - - var resUser structs.UserResponse - - copier.Copy(&resUser, &foundUser) - - return c.JSON(resUser) -}*/ - func GetAllUserSignUpProcesses(c *fiber.Ctx) error { // swagger:operation GET /users/signupprocesses users usersGetAllUserSignUpProcesses // ---