Skip to content

LEGACY:Profile Routes

Abdullah bin Ammar edited this page May 20, 2025 · 1 revision

Routes Overview

Protected Routes

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.

Key Takeaways

  • 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.

Clone this wiki locally