web.php 784 B

1234567891011121314151617181920212223
  1. <?php
  2. use Illuminate\Http\Request;
  3. /*
  4. |--------------------------------------------------------------------------
  5. | Web Routes
  6. |--------------------------------------------------------------------------
  7. |
  8. | Here is where you can register web routes for your application. These
  9. | routes are loaded by the RouteServiceProvider within a group which
  10. | contains the "web" middleware group. Now create something great!
  11. |
  12. */
  13. Route::get('/', function (Request $request) {
  14. if (config('v2board.app_url') && ($request->getSchemeAndHttpHost() !== config('v2board.app_url'))) {
  15. abort(403, 'forbidden');
  16. }
  17. return view('app', [
  18. 'title' => config('v2board.app_name', 'V2Board'),
  19. 'theme' => config('v2board.app_theme', 1),
  20. 'verison' => '0.2.2'
  21. ]);
  22. });