Fixes route registration.
This commit is contained in:
@@ -4,14 +4,17 @@ use App\Http\Controllers\WebAuthn\WebAuthnLoginController;
|
||||
use App\Http\Controllers\WebAuthn\WebAuthnRegisterController;
|
||||
use Illuminate\Support\Facades\Route;
|
||||
|
||||
Route::middleware('web')->group(static function (): void {
|
||||
Route::post('webauthn/register/options', [WebAuthnRegisterController::class, 'options'])
|
||||
->name('webauthn.register.options');
|
||||
Route::post('webauthn/register', [WebAuthnRegisterController::class, 'register'])
|
||||
->name('webauthn.register');
|
||||
Route::middleware('web')
|
||||
->group(static function (): void {
|
||||
Route::controller(WebAuthnRegisterController::class)
|
||||
->group(static function (): void {
|
||||
Route::post('webauthn/register/options', 'options')->name('webauthn.register.options');
|
||||
Route::post('webauthn/register', 'register')->name('webauthn.register');
|
||||
});
|
||||
|
||||
Route::post('webauthn/login/options', [WebAuthnLoginController::class, 'options'])
|
||||
->name('webauthn.login.options');
|
||||
Route::post('webauthn/login', [WebAuthnLoginController::class, 'login'])
|
||||
->name('webauthn.login');
|
||||
});
|
||||
Route::controller(WebAuthnLoginController::class)
|
||||
->group(static function (): void {
|
||||
Route::post('webauthn/login/options', 'options')->name('webauthn.login.options');
|
||||
Route::post('webauthn/login', 'login')->name('webauthn.login');
|
||||
});
|
||||
});
|
||||
|
||||
Reference in New Issue
Block a user