2019-10-29 15:33:36 +08:00
|
|
|
<?php
|
2019-12-05 02:37:32 +08:00
|
|
|
use Illuminate\Http\Request;
|
2019-10-29 15:33:36 +08:00
|
|
|
/*
|
|
|
|
|--------------------------------------------------------------------------
|
|
|
|
| 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!
|
|
|
|
|
|
|
|
|
*/
|
|
|
|
|
2019-12-05 02:37:32 +08:00
|
|
|
Route::get('/', function (Request $request) {
|
2019-12-05 02:40:18 +08:00
|
|
|
if (config('v2board.app_url') && ($request->getSchemeAndHttpHost() !== config('v2board.app_url'))) {
|
2019-12-05 02:37:32 +08:00
|
|
|
abort(403, 'forbidden');
|
|
|
|
}
|
2019-10-29 15:33:36 +08:00
|
|
|
return view('app', [
|
2019-11-18 19:52:30 +08:00
|
|
|
'title' => config('v2board.app_name', 'V2Board'),
|
2019-11-25 22:12:53 +08:00
|
|
|
'theme' => config('v2board.app_theme', 1),
|
2019-11-30 17:01:46 +08:00
|
|
|
'verison' => '0.2.1'
|
2019-10-29 15:33:36 +08:00
|
|
|
]);
|
|
|
|
});
|