Files
nexusphp/routes/web.php

26 lines
760 B
PHP
Raw Normal View History

2021-04-02 19:48:41 +08:00
<?php
use Illuminate\Support\Facades\Route;
/*
|--------------------------------------------------------------------------
| Web Routes
|--------------------------------------------------------------------------
|
| Here is where you can register web routes for your application. These
| routes are loaded by the RouteServiceProvider within a group which
| contains the "web" middleware group. Now create something great!
|
*/
Route::get('/', function () {
return redirect('index.php');
2021-04-02 19:48:41 +08:00
});
2022-06-27 01:39:01 +08:00
2022-07-06 13:10:22 +08:00
$passkeyLoginUri = get_setting('security.login_secret');
if (!empty($passkeyLoginUri) && get_setting('security.login_type') == 'passkey') {
Route::get("$passkeyLoginUri/{passkey}", [\App\Http\Controllers\AuthenticateController::class, 'passkeyLogin']);
}