-
Notifications
You must be signed in to change notification settings - Fork 0
LEGACY:Profile Routes
Abdullah bin Ammar edited this page May 20, 2025
·
1 revision
| Method | Route | Description |
|---|---|---|
| GET | /update-profile | Displays the form for updating the user's profile. |
| POST | /update-profile | Processes the profile update after validation. |
| GET | /profile | Shows the logged-in user's profile details. |
| GET | /delete-account | Renders the account deletion confirmation page. |
| POST | /delete-account | Permanently deletes the user's account. |
- All routes require authentication (isAuthenticated).
- Profile updates go through validation (validateProfileInput).
- Users can update, view, and delete their accounts securely.
- Follows MVC structure by delegating logic to profileController.