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

Create User GET Request Handler #6

Open
2 tasks
IvanA673 opened this issue Jan 10, 2025 · 0 comments
Open
2 tasks

Create User GET Request Handler #6

IvanA673 opened this issue Jan 10, 2025 · 0 comments

Comments

@IvanA673
Copy link
Collaborator

Description
Create the GET HTTP Request API Route Handler to get an instance of a user. If you need an example of a GET handler with Prisma, look under resources in Sprint 1 Google doc. You can expect to the data to be in the request body and it will be coming from a form submission. Research and implement querying the database with a specific field (an email) utilizing Prisma.

Steps:

  • Create a new folder under api named "user". Within that folder create a new route.ts file.
  • Within that new route.ts file, create the GET function to get the data of a user from the database.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant