$router->get('/', function () use ($router) {
return config('options.author');
});
$router->get('/user/{user_id}', function($user_id) {
return $user_id;
});
$router->group(['namespace' => 'Admin',"prefix"=>'admin'], function($router) {
$router->get('user/info', "UserController@info");
});
来源:oschina
链接:https://my.oschina.net/u/4346209/blog/3270307