version('v1',[ 'namespace'=>'App\Http\Controllers' ],function ($api){ $api->post('admin/login','AdminController@login'); $api->get('captcha','TestController@image'); $api->post('login','TestController@login'); $api->get('users/me','TestController@me'); $api->get('menus/routes','TestController@routes'); $api->group(['middleware' => 'check_token'], function ($api) { $api->get('Apply/GetApplyList','AdminController@GetApplyList'); $api->get('Apply/SearchInfo','AdminController@SearchInfo'); $api->post('Apply/AddUserInfo','AdminController@AddUserInfo'); $api->get('Apply/DelApply','AdminController@DelApply'); $api->group(['prefix' => 'ApplyDel'], function ($api) { $api->get('GetApplyList','ApplyDelController@GetApplyList'); $api->get('SearchInfo','ApplyDelController@SearchInfo'); $api->post('AddUserInfo','ApplyDelController@AddUserInfo'); $api->get('DelApply','ApplyDelController@DelApply'); $api->get('Examine','ApplyDelController@Examine'); $api->post('UploadFile','ApplyDelController@UploadFile'); $api->post('UploadFileMedia','ApplyDelController@UploadFileMedia'); }); }); });