ldc-web/routes/web-fo.php
Vincent BRIDIER 5fd90b7cbc
csp fixes
2022-09-22 12:49:52 +02:00

14 lines
No EOL
637 B
PHP

<?php
use App\Http\Controllers\OTPController;
use App\Http\Controllers\Webhooks\GitlabController;
use Illuminate\Support\Facades\Route;
Route::post('/webhooks/gitlab', [GitlabController::class, 'handle']);
Route::group(['middleware' => ['ldcnetwork']], function () {
Route::view('/login/unauthorized', 'auth.unauthorized')->name('unauthorized');
Route::get('/login/verify', [OTPController::class, 'verify'])->name('auth.verify');
Route::get('/login/send-sms-otp', [OTPController::class, 'sendOtpBySms'])->name('auth.sms-otp');
Route::post('/login/checkOTP', [OTPController::class, 'check'])->name('auth.otpCheck');
});