Fix: Decrypt profile fields, wallet fingerprint alias, and enable profile POST update

This commit is contained in:
Hamza-Ayed
2026-04-24 00:42:56 +03:00
parent 69993ff775
commit 93b57d2ece
4 changed files with 16 additions and 10 deletions

View File

@@ -105,10 +105,10 @@ Route::prefix('v2')->middleware(['hmac.auth', 'jwt.auth'])->group(function () {
Route::get('/tracking/captain-stats', [TrackingController::class, 'captainStats']);
// ── Profile ──
Route::match(['get', 'post'], '/profile/passenger', [ProfileController::class, 'passenger']);
Route::get('/profile/passenger', [ProfileController::class, 'passenger']);
Route::get('/profile/driver', [ProfileController::class, 'driver']);
Route::put('/profile/passenger', [ProfileController::class, 'updatePassenger']);
Route::put('/profile/driver/email', [ProfileController::class, 'updateDriverEmail']);
Route::match(['post', 'put'], '/profile/passenger', [ProfileController::class, 'updatePassenger']);
Route::match(['post', 'put'], '/profile/driver/email', [ProfileController::class, 'updateDriverEmail']);
// ── Wallet ──
Route::get('/wallet/passenger', [WalletController::class, 'index']);