SFU-Blueprint / Pedals

Apache License 2.0
0 stars 0 forks source link

Create API Route for Registration #20

Closed Sallin142 closed 2 months ago

Sallin142 commented 2 months ago

Task: Implement the API route for user registration. Details: Objective: Enable new users to register by adding their information to the users table. Steps:

  1. Define an API route handler to process POST requests.
  2. Extract user details (name, date of birth, pronoun, email) from the request body.
  3. Use the Supabase client to insert the new user data into the users table.
  4. Handle errors and return appropriate responses.

Files: src/app/auth/api/register.ts