<?php use Core\Routing\Route; Route::get('/', 'Controller@main'); Route::get('/admin/index', 'AdminProfileController@index'); /* Route::get('/', 'Controller@index'); Route::get('/get/user/info/:name/:email', 'Controller@userInfo'); Route::get('/america/newyour/test/:id', 'Controller@testAction'); Route::get('/america/newyour/:id', 'Controller@usaAction'); Route::get('/america/newyour/test/google/:id/:test', 'Controller@last'); Route::get('/test1', 'Controller@smallGoogle'); Route::get('/ma', 'Controller@bigTester'); Route::get('/admin/add/video/:cat_id/:video_id/:authName', 'Controller@test'); Route::post('/email/send', 'Controller@emailSend'); */
<?php use Core\Routing\Route; Route::get('/', 'Controller@index'); Route::get('/get/user/info/:name/:email', 'Controller@userInfo'); Route::get('/america/newyour/test/:id', 'Controller@testAction'); Route::get('/america/newyour/:id', 'Controller@usaAction'); Route::get('/america/newyour/test/google/:id/:test', 'Controller@last'); Route::get('/test1', 'Controller@smallGoogle'); Route::get('/ma', 'Controller@bigTester'); Route::get('/admin/add/video/:cat_id/:video_id/:authName', 'Controller@test'); Route::post('/email/send', 'Controller@emailSend');
<?php /** * Created by IntelliJ IDEA. * User: max * Date: 19-Dec-15 * Time: 16:50 */ use core\routing\Route; //Todo: home different //Todo: set default regex consts return [Route::get(":page", "Index")->setConstraints(["page" => "any"]), Route::get("", "Index")];