Open HaiyiCai opened 4 days ago
Create API routes for user authentication, including:
[ ] POST /auth/register:
[ ] POST /auth/login:
[ ] POST /request-password-reset:
[ ] POST /auth/logout:
These routes will connect to AuthController.js to handle user authentication logic, including registration, login validation, password rest and logout functionality. They will enforce authentication and authorization through AuthMiddleware to ensure secure access to sensitive routes, particularly for actions like registration and login. Middleware will also be used to protect routes that require an authenticated user. Additionally, these routes will interact with the UserModel.js for managing user data and storing credentials securely.
Point Value: 4 Feature Size: Medium
#66