From f60a390f5c51039fd1efc1df9a6a7f3864ce0062 Mon Sep 17 00:00:00 2001 From: Thomas Vanbesien Date: Sat, 21 Mar 2026 21:49:57 +0100 Subject: Add profile page for editing username, email, password, and notifications --- src/config/routes.php | 7 +++++++ 1 file changed, 7 insertions(+) (limited to 'src/config/routes.php') diff --git a/src/config/routes.php b/src/config/routes.php index e5f289c..e5b4a9a 100644 --- a/src/config/routes.php +++ b/src/config/routes.php @@ -17,3 +17,10 @@ $router->get('/forgot-password', 'AuthController', 'forgotPasswordForm'); $router->post('/forgot-password', 'AuthController', 'forgotPassword'); $router->get('/reset-password', 'AuthController', 'resetPasswordForm'); $router->post('/reset-password', 'AuthController', 'resetPassword'); + +// Profile +$router->get('/profile', 'ProfileController', 'show'); +$router->post('/profile/username', 'ProfileController', 'updateUsername'); +$router->post('/profile/email', 'ProfileController', 'updateEmail'); +$router->post('/profile/password', 'ProfileController', 'updatePassword'); +$router->post('/profile/notifications', 'ProfileController', 'updateNotifications'); -- cgit v1.2.3