aboutsummaryrefslogtreecommitdiffstats
path: root/src/config
diff options
context:
space:
mode:
authorThomas Vanbesien <tvanbesi@proton.me>2026-03-21 21:49:57 +0100
committerThomas Vanbesien <tvanbesi@proton.me>2026-03-21 21:49:57 +0100
commitf60a390f5c51039fd1efc1df9a6a7f3864ce0062 (patch)
tree9ec829dd92a93a79a2047494d07c95b7c0197389 /src/config
parentbc54c8c31e7f50a7a365f9b4d22fe8c74a29f61a (diff)
downloadcamagru-f60a390f5c51039fd1efc1df9a6a7f3864ce0062.tar.gz
camagru-f60a390f5c51039fd1efc1df9a6a7f3864ce0062.zip
Add profile page for editing username, email, password, and notifications
Diffstat (limited to 'src/config')
-rw-r--r--src/config/routes.php7
1 files changed, 7 insertions, 0 deletions
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');