CjKhaled / roost

1 stars 1 forks source link

Express: Create "Auth" routes #10

Closed CjKhaled closed 1 month ago

CjKhaled commented 1 month ago

Create the routes for logging in and signing up. When a user signs up, they should be automatically logged in. Write controller functions that connect the service functions to these routes. Ensure you put validation functions before their respective controller function. Write integration tests using Jest to verify functionality.

Tasks

Put routes in a file called authRoutes.js in /server/routes Put controllers in a file called authController.js in /server/controllers Put tests in a file called auth.test.js in /tests/integrationTests/