removed unused func

alpha
alex 2023-02-19 11:15:00 +01:00
parent 52a6f9af2d
commit cb38ede83a
1 changed files with 0 additions and 40 deletions

View File

@ -43,46 +43,6 @@ func GetAllUsers(c *fiber.Ctx) error {
return c.JSON(structs.UsersResponse{Users: nUsers}) 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 { func GetAllUserSignUpProcesses(c *fiber.Ctx) error {
// swagger:operation GET /users/signupprocesses users usersGetAllUserSignUpProcesses // swagger:operation GET /users/signupprocesses users usersGetAllUserSignUpProcesses
// --- // ---