move closure to controller
This commit is contained in:
parent
a005485c42
commit
97913ac38f
|
|
@ -0,0 +1,13 @@
|
|||
<?php
|
||||
|
||||
namespace App\Http\Controllers;
|
||||
|
||||
use Illuminate\Http\Request;
|
||||
|
||||
class FrontendController extends Controller
|
||||
{
|
||||
public function index()
|
||||
{
|
||||
return view('index');
|
||||
}
|
||||
}
|
||||
|
|
@ -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', '.*');
|
||||
Loading…
Reference in New Issue