SFU-Blueprint / Pedals

Apache License 2.0
0 stars 0 forks source link

Create API Route for Check-In #19

Closed Sallin142 closed 2 months ago

Sallin142 commented 2 months ago

Task: Implement the API route for user check-in. Details: Objective: Allow users to check in by updating their status and recording the timestamp. Steps:

  1. Define an API route handler to process POST requests.
  2. Extract user identifier (e.g., email) from the request body.
  3. Use the Supabase client to update the user's status to "checked in" and record the current timestamp.
  4. Handle errors and return appropriate responses.

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