📅  最后修改于: 2022-03-11 14:54:51.105000             🧑  作者: Mango
$api = app('Dingo\Api\Routing\Router');
$api->version('v1', function ($api) {
$api->post('user/register', 'App\Api\v1\Controllers\UserController@register');
$api->get('get-project/{api_token}/{responsible}', 'App\Api\v1\Controllers\ProjectController@single');
$api->get('status-script-project/{api_token}/{number}/{status_code?}', 'App\Api\v1\Controllers\ProjectController@setStatusScript');
});