move closure to controller

This commit is contained in:
Matthew Shillam 2019-10-09 15:10:48 +01:00
parent a005485c42
commit 97913ac38f
2 changed files with 18 additions and 3 deletions

View File

@ -0,0 +1,13 @@
<?php
namespace App\Http\Controllers;
use Illuminate\Http\Request;
class FrontendController extends Controller
{
public function index()
{
return view('index');
}
}

View File

@ -3,6 +3,8 @@
// Route::get('/', function () {
// return view('index');
// });
Route::get('/{any}', function(){
return view('index');
})->where('any', '.*');
// Route::get('/{any}', function(){
// return view('index');
// })->where('any', '.*');
Route::get('/{any}', 'GamesController@index')->where('any', '.*');