📜  laravel dingo api 响应 - PHP 代码示例

📅  最后修改于: 2022-03-11 14:54:51.105000             🧑  作者: Mango

代码示例1
$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');
});