driver api setting 1

This commit is contained in:
Hamza-Ayed
2026-04-25 11:42:40 +03:00
parent fccd758e93
commit fe5fa1feff
6 changed files with 547 additions and 59 deletions

View File

@@ -53,10 +53,10 @@ Route::prefix('v2/auth')->group(function () {
Route::get('/passenger/login-google', [AuthController::class, 'passengerLoginGoogle']);
// Driver
Route::post('/driver/login', [AuthController::class, 'driverLogin']);
Route::match(['get', 'post'], '/driver/login', [AuthController::class, 'driverLogin']);
Route::post('/driver/register', [AuthController::class, 'driverRegister']);
Route::post('/driver/wallet-login', [AuthController::class, 'driverWalletLogin']);
Route::get('/driver/login-google', [AuthController::class, 'driverLoginGoogle']);
Route::match(['get', 'post'], '/driver/login-google', [AuthController::class, 'driverLoginGoogle']);
// Admin & Service
Route::post('/admin/login', [AuthController::class, 'adminLogin']);
@@ -73,9 +73,14 @@ Route::post('v2/admin/errors', [MiscController::class, 'logClientError']);
Route::prefix('v2/otp')->middleware('throttle:10,1')->group(function () {
Route::post('/send', [OtpController::class, 'send']);
Route::post('/verify', [OtpController::class, 'verify']);
// Dedicated Driver OTP Endpoints (matches V1 sendOtpMessageDriver.php)
Route::post('/driver/send', [OtpController::class, 'sendDriver']);
Route::post('/driver/verify', [OtpController::class, 'verifyDriver']);
Route::post('/email/send', [OtpController::class, 'sendEmail']);
Route::post('/email/verify', [OtpController::class, 'verifyEmail']);
Route::get('/check-phone', [OtpController::class, 'checkPhone']);
Route::match(['get', 'post'], '/check-phone', [OtpController::class, 'checkPhone']);
});
// ══════════════════════════════════════════════