version('v1', function($api) { $api->group(['namespace' => 'SuperAdminBundle\Http\SuperApi\V1\Action', 'prefix'=>'superadmin', 'middleware' => ['superguard', 'api.auth'], 'providers' => 'jwt'], function($api) { // 获取物流公司列表 $api->get('/logistics/list', ['as' => 'super.logistics.list', 'uses'=>'Logistics@getLogisticsList']); // 更新物流公司信息 $api->put('/logistics', ['as' => 'super.logistics.update', 'uses'=>'Logistics@updateLogistics']); $api->delete('/logistics/{id}', ['as' => 'super.logistics.delete', 'uses'=>'Logistics@deleteLogistics']); $api->put('/logistics/del', ['as' => 'super.logistics.del', 'uses'=>'Logistics@batchdeleteLogistics']); $api->post('/logistics', ['as' => 'super.logistics.create', 'uses'=>'Logistics@createLogistics']); $api->get('/logistics/init', ['as' => 'super.logistics.init', 'uses'=>'Logistics@initLogistics']); }); });