From 2489aad0c82a4232c68c2bc55853dfced40d97e8 Mon Sep 17 00:00:00 2001 From: Giovanni-Josserand Date: Sat, 28 Mar 2026 17:55:04 +0100 Subject: [PATCH] create updatePassword route in User route --- routes/users.php | 2 ++ 1 file changed, 2 insertions(+) diff --git a/routes/users.php b/routes/users.php index 261389a..00a47bb 100644 --- a/routes/users.php +++ b/routes/users.php @@ -44,4 +44,6 @@ Route::middleware(['web', 'auth:sanctum'])->patch('/users/{id}/email-notificatio Route::middleware(['web', 'auth:sanctum'])->patch('/users/{id}/web-notifications', [UserController::class, "toggleWebNotifications"]) ->whereNumber('id'); +Route::middleware(['web', 'auth:sanctum'])->post('/users/update/password', [UserController::class, 'updatePassword']); +