Skip to content

feat: Add routes for user profile management #27

@PyDev19

Description

@PyDev19

Right now, we have a user profile table in the DB and schemas for it, but no routes to manage it.
Tasks:

  • Add a route for creating a user profile for new users, ideally used by the page right before the survey, call it /api/profiles/create, it will be a post method, use bearer token
  • Add a route for updating an already existing profile for pre-existing users, ideally used by the profiles page, call it /api/profiles/update, it will be a post method, use bearer token
  • Add a route for fetching a user's profile, useful for when you are trying to view a user you are matched against, no need for authorization with a bearer token, call it /api/profiles/get/{id}
  • Updated User ORM to also return their connected profile with their user table
  • Updated /api/auth/me to also return the profile of the user so that it can be used on the profile page also side the survey

Metadata

Metadata

Assignees

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions