v2board/routes/web.php
2020-01-20 16:43:34 +08:00

29 lines
888 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')) {
if ($request->server('HTTP_HOST') !== parse_url(config('v2board.app_url'))['host']) {
abort(403);
}
}
return view('app', [
'title' => config('v2board.app_name', 'V2Board'),
'theme' => config('v2board.frontend_theme', 1),
'backgroun_url' => config('v2board.frontend_background_url'),
'verison' => '1.0.3'
]);
});