Should fix route registration using controller base prefix.
This commit is contained in:
@@ -32,19 +32,19 @@ class WebAuthn
|
|||||||
public static function routes(): void
|
public static function routes(): void
|
||||||
{
|
{
|
||||||
Route::middleware('web')->group(static function (): void {
|
Route::middleware('web')->group(static function (): void {
|
||||||
Route::post('webauthn/register/options')
|
Route::post(
|
||||||
->uses([\App\Http\Controllers\WebAuthn\WebAuthnRegisterController::class, 'options'])
|
'webauthn/register/options', [\App\Http\Controllers\WebAuthn\WebAuthnRegisterController::class, 'options'
|
||||||
->name('webauthn.register.options');
|
])->name('webauthn.register.options');
|
||||||
Route::post('webauthn/register')
|
Route::post(
|
||||||
->uses([\App\Http\Controllers\WebAuthn\WebAuthnRegisterController::class, 'register'])
|
'webauthn/register', [\App\Http\Controllers\WebAuthn\WebAuthnRegisterController::class, 'register'
|
||||||
->name('webauthn.register');
|
])->name('webauthn.register');
|
||||||
|
|
||||||
Route::post('webauthn/login/options')
|
Route::post(
|
||||||
->uses([\App\Http\Controllers\WebAuthn\WebAuthnLoginController::class, 'options'])
|
'webauthn/login/options', [\App\Http\Controllers\WebAuthn\WebAuthnLoginController::class, 'options'
|
||||||
->name('webauthn.login.options');
|
])->name('webauthn.login.options');
|
||||||
Route::post('webauthn/login')
|
Route::post(
|
||||||
->uses([\App\Http\Controllers\WebAuthn\WebAuthnLoginController::class, 'login'])
|
'webauthn/login', [\App\Http\Controllers\WebAuthn\WebAuthnLoginController::class, 'login'
|
||||||
->name('webauthn.login');
|
])->name('webauthn.login');
|
||||||
});
|
});
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|||||||
Reference in New Issue
Block a user