mirror of
https://github.com/v2board/v2board.git
synced 2024-11-10 17:49:11 +08:00
24 lines
784 B
PHP
Executable File
24 lines
784 B
PHP
Executable File
<?php
|
|
use Illuminate\Http\Request;
|
|
/*
|
|
|--------------------------------------------------------------------------
|
|
| 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 (Request $request) {
|
|
if (config('v2board.app_url') && ($request->getSchemeAndHttpHost() !== config('v2board.app_url'))) {
|
|
abort(403, 'forbidden');
|
|
}
|
|
return view('app', [
|
|
'title' => config('v2board.app_name', 'V2Board'),
|
|
'theme' => config('v2board.app_theme', 1),
|
|
'verison' => '0.2.2'
|
|
]);
|
|
});
|