FelipePSoares / EconoFlow

An easy system to help you control your personal or company budget.
https://econoflow.pt/
MIT License
3 stars 3 forks source link

[Backend] Create endpoint to accept invite #271

Open FelipePSoares opened 4 days ago

FelipePSoares commented 4 days ago

Create an endpoint in the ProjectsController to accept a invitation to a project. This will allow users to accept a invitation for a specific project.

  1. Endpoint:

    • Add a POST endpoint to the ProjectsController.
    • URL: /api/projects/{token}/accept
    • HTTP Method: POST
  2. Logic:

    • Check if the logged user is the user in the invitation.
    • Check if the invite still valid.
    • Set the invite as accepted based on the token.