Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

User API Routes #94

Open
noahgiboney opened this issue Jan 30, 2025 · 0 comments
Open

User API Routes #94

noahgiboney opened this issue Jan 30, 2025 · 0 comments
Assignees
Labels
backend This is a backend issue medium this issue should take about 1 week

Comments

@noahgiboney
Copy link
Collaborator

noahgiboney commented Jan 30, 2025

Description
With the addition of non profit accounts, we no longer need the AdminSchema. This would rather be a user model with a role indicating the role of the user. We are also gonna need GET and POST routes for user.

Acceptance Criteria
User Schema is accurate and API routes work correctly.

Steps:

  • Refactor the admin schema to be user schema. Include the following properties: name, email, isAdmin (boolean). Delete the password field. This will be for clerk to handle
  • Create a new POST route under api/users/route.ts
  • Create a new GET user by ID route under 'api/users/[ID]/route.ts]`
  • Test API routes to ensure users are in mongo DB
@noahgiboney noahgiboney changed the title nonprofit accounts / guest option User API Routes Jan 30, 2025
@noahgiboney noahgiboney added backend This is a backend issue medium this issue should take about 1 week labels Jan 30, 2025
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
backend This is a backend issue medium this issue should take about 1 week
Projects
None yet
Development

When branches are created from issues, their pull requests are automatically linked.

2 participants