middleware(\app\api\middleware\Auth::class); Route::group('article',function () { Route::get('index', 'article/index'); Route::get('hot_list', 'article/hot_list'); Route::post('post', 'article/post'); Route::get('edit', 'article/edit'); Route::post('put', 'article/put'); Route::get('del', 'article/delete'); Route::get('details', 'article/details'); }); Route::group('my_article',function () { Route::get('index', 'myArticle/index'); Route::get('details', 'myArticle/details'); }); Route::group('article_comment',function () { Route::get('index', 'ArticleComment/index'); Route::get('one_list', 'ArticleComment/OneList'); Route::post('post', 'ArticleComment/post'); Route::get('edit', 'ArticleComment/edit'); Route::post('put', 'ArticleComment/put'); Route::get('del', 'ArticleComment/delete'); }); Route::get('wx', 'ceshi/ceshi2'); Route::post('login', 'ceshi/index'); Route::post('getopenid','ceshi/getopenid'); //获取小程序openID Route::post('getoffopenid','ceshi/getoffopenid'); //获取公众号openid Route::post('phone_login', 'User/mobilelogin'); Route::post('profile', 'User/profile'); Route::post('upload', 'common/upload'); Route::get('idcard', 'common/idcard'); Route::get('get_all_category_insurance', 'common/get_all_category_insurance'); Route::get('get_all_category_health', 'common/get_all_category_health'); Route::get('getWorkArticleCount', 'Article/getWorkArticleCount'); Route::get('getMyArticleCount', 'Article/getMyArticleCount'); Route::get('getArticleList', 'Article/getArticleList'); Route::group('city',function () { Route::get('get_area', 'common/get_area'); Route::get('get_street', 'common/get_street'); Route::get('get_village', 'common/get_village'); }); Route::post('pay', 'pay/index'); Route::post('pay_notify', 'PayNotify/index');