123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142 |
- <?php
- use think\Route;
- Route::group('api', function () {
- Route::get('index', 'api/Index/index');
- Route::get('geocoder', 'api/Index/geocoder');
- Route::any('Wechat/serve','api/Wechat/serve');
- Route::any('wechat/notify/:cid','api/Wechat/notify');
- Route::any('routine/notify/:cid','api/routine/notify');
- Route::post('register', 'api/User/register');
- Route::post('login', 'api/User/login');
- Route::post('logout', 'api/User/logout');
- Route::post('reset', 'api/User/resetpwd');
- Route::post('captcha', 'api/Sms/send');
- Route::post('upload', 'api/Common/upload');
- Route::get('userinfo', 'api/User/userinfo');
- Route::group('user', function () {
- Route::get('/', 'api/User/index');
- Route::post('profile', 'api/User/profile');
- Route::get('children/num', 'api/User/children_num');
- Route::get('children/:id', 'api/User/children');
- Route::get('spread_children/:id', 'api/User/spread_children');
- });
-
- Route::group('index', function () {
- Route::get('company', 'api/Index/company');
- Route::get('wxconfig', 'api/Index/wxconfig');
- Route::get('test', 'api/Index/test');
- });
-
- Route::group('wechat', function () {
- Route::get('auth', 'api/wechat/auth');
- Route::get('wxconfig', 'api/Index/wxconfig');
- });
-
- Route::group('institution', function () {
- Route::get('aed', 'api/institution/ade');
- Route::get('institution', 'api/institution/insti');
- Route::get('station', 'api/institution/station');
- });
-
- Route::group('Article', function () {
- Route::get('ify', 'api/Article/ify');
- Route::get('lst', 'api/Article/lst');
- Route::get('view', 'api/Article/view');
- });
-
- Route::group('Rescue', function () {
- Route::get('index', 'api/Rescue/index');
- Route::post('create', 'api/Rescue/create');
- Route::get('applylst', 'api/Rescue/applylst');
- Route::post('sos', 'api/Rescue/sos_create');
- Route::get('lst', 'api/Rescue/lst');
- Route::post('setstatus', 'api/Rescue/setstatus');
- Route::get('sos_del','api/Rescue/sos_del');
- });
-
- Route::group('lave', function () {
- Route::post('create', 'api/lave/create');
- Route::get('ify', 'api/lave/ify');
- Route::get('lst', 'api/lave/lst');
- Route::get('mylst', 'api/lave/mylst');
- Route::get('pay', 'api/lave/pay');
- });
-
- Route::group('help', function () {
- Route::get('index', 'api/help/index');
- Route::get('view', 'api/help/view');
- Route::post('apply', 'api/help/apply');
- Route::get('ify', 'api/help/ify');
- Route::get('applylst', 'api/help/lst');
- });
-
- Route::group('project', function () {
- Route::get('list', 'api/project/lst');
- Route::get('info', 'api/project/info');
- Route::post('myorder', 'api/project/myorder');
- Route::post('all_order', 'api/project/all_order');
- Route::post('order_create', 'api/project/order_create');
- Route::post('create_user', 'api/project/create_user');
- Route::get('user_list', 'api/project/user_list');
- Route::get('Donation_info', 'api/project/Donation_info');
- Route::get('logistics', 'api/project/logistics');
- Route::post('bill', 'api/project/bill');
- Route::get('order_info', 'api/project/order_info');
- });
-
- Route::group('training', function () {
- Route::get('lst', 'api/training/lst');
- Route::get('view', 'api/training/view');
- Route::post('apply', 'api/training/apply');
- Route::get('mylst', 'api/training/mylst');
- });
-
- Route::group('level', function () {
- Route::post('create', 'api/level/apply');
- Route::get('ify', 'api/level/ify');
- Route::get('lst', 'api/level/lst');
- Route::get('view', 'api/level/view');
- });
-
- Route::group('donate', function () {
- Route::post('apply', 'api/help/apply');
- Route::get('lst', 'api/help/lst');
- Route::get('view', 'api/help/view');
- });
-
- Route::group('volunteer', function () {
- Route::post('apply', 'api/volunteer/apply');
- Route::get('applylst', 'api/volunteer/lst');
- });
- });
- return [
-
- '__alias__' => [
- ],
-
- '__pattern__' => [
- ],
- ];
|