版本控制是怎么传递的v1,v2,我在header和body中传递怎么没有反应?
$api = app('Dingo\Api\Routing\Router');
$api->version('v1', function ($api) {
$api->post('/register','App\Http\Controllers\MyController@register');
});
$api->version('v2', function ($api) {
$api->post('/test','App\Http\Controllers\MyController@test');
});