Applied manual JWT check and restored all driver fields1

This commit is contained in:
Hamza-Ayed
2026-04-25 12:39:35 +03:00
parent b9e66772a4
commit e306217806
4 changed files with 34 additions and 3 deletions

View File

@@ -152,6 +152,7 @@ Route::prefix('v2')->middleware(['hmac.auth', 'jwt.auth'])->group(function () {
// ── Notifications ──
Route::get('/notifications', [NotificationController::class, 'index']);
Route::get('/notifications/driver', [NotificationController::class, 'index']);
Route::post('/notifications/update', [NotificationController::class, 'updateNotification']);
Route::get('/notifications/token', [NotificationController::class, 'getToken']);
Route::post('/notifications/token', [NotificationController::class, 'updateToken']);
@@ -170,6 +171,7 @@ Route::prefix('v2')->middleware(['hmac.auth', 'jwt.auth'])->group(function () {
Route::post('/misc/egypt-phones', [MiscController::class, 'saveEgyptPhones']);
// ── Invites ──
Route::get('/invites/driver', [InviteController::class, 'index']);
Route::post('/invites/driver', [InviteController::class, 'inviteDriver']);
Route::post('/invites/passenger', [InviteController::class, 'invitePassenger']);
Route::get('/invites/gift', [InviteController::class, 'checkGift']);