* * This source file is subject to the MIT license that is bundled * with this source code in the file LICENSE. */ use Illuminate\Support\Facades\Route; /* |-------------------------------------------------------------------------- | Application Routes |-------------------------------------------------------------------------- | | Here is where you can register all of the routes for an application. | It is a breeze. Simply tell Lumen the URIs it should respond to | and give it the Closure to call when that URI is requested. | */ /** * 公共 */ Route::group([ 'prefix' => 'common' ], function () { Route::get('enums', 'CommonController@enums'); // Route::get('clear', 'CommonController@clear'); // Route::get('test', 'CommonController@test'); }); /** * 基础模块 */ Route::group([ 'namespace' => 'Base', 'prefix' => 'base' ], function () { Route::post('/auth/mobile/send-validate-code', 'AuthController@sendLoginValidateCode'); Route::post('/auth/mobile', 'AuthController@mobileLogin'); Route::post('/auth/wechat', 'AuthController@wxLogin'); Route::post('/auth/testToken', 'UserController@testToken'); Route::post('/auth/test-mobile-login', 'AuthController@testMobileLogin'); // //配置文件 Route::post('/setting/configs', 'SettingController@configs'); // Route::post('/dicts/configs', 'DictController@configs'); // Route::get('/dicts/config', 'DictController@config'); //微信公众号 Route::post('/wechat/jssdk', 'WatchController@jssdk'); Route::group([ // 'middleware' => ['jwt.auth', 'jwt.refresh', 'auth.role:user'] 'middleware' => ['jwt.auth', 'auth.role:user', 'single:api'] ], function () { Route::get('/auth/me', 'AuthController@me'); Route::get('/auth/logout', 'AuthController@logout'); Route::post('/user/is-read-xin', 'UserController@isReadXin'); Route::get('/common/clear', 'CommonController@clear'); }); }); Route::group([ 'namespace' => 'Dwbs', 'prefix' => 'dwbs', 'middleware' => ['jwt.auth', 'auth.role:user', 'single:api'] ], function () { //排行榜 Route::get('/rankings', 'RankingController@index'); Route::get('/ranking/show-status', 'RankingController@showStatus'); Route::get('/ranking/rolling-mes', 'UserXuefenController@rollingMes'); Route::get('/xuefens', 'UserXuefenController@index'); Route::post('/xuefen/verify', 'UserXuefenController@verify'); Route::get('/order', 'OrderController@show'); Route::get('/shop/goods', 'ShopGoodController@index'); Route::get('/shop/orders', 'ShopOrderController@index'); Route::post('/shop/order', 'ShopOrderController@store'); Route::get('/shop/order', 'ShopOrderController@show'); Route::post('/shop/order/update-address', 'ShopOrderController@updateAddress'); Route::post('/shop/order/close', 'ShopOrderController@closeOrder'); Route::get('/shop/order/express', 'ShopOrderController@express'); Route::get('/addresses', 'UserAddressController@index'); Route::get('/address', 'UserAddressController@show'); Route::post('/address', 'UserAddressController@store'); Route::put('/address', 'UserAddressController@update'); Route::delete('/address', 'UserAddressController@destroy'); Route::post('/address/analysis', 'UserAddressController@analysis'); Route::get('/address/default', 'UserAddressController@meDefault'); Route::post('/address/update-is-default', 'UserAddressController@updateIsDefault'); Route::get('/jifens', 'UserJifenController@index'); Route::get('/business/category/select-options', 'BusinessCategoryController@selectOptions'); Route::get('/business/schools', 'BusinessSchoolController@index'); Route::get('/business/school', 'BusinessSchoolController@show'); Route::get('/home/me-analysis', 'HomeController@meAnalysis'); Route::get('/zhengshu/me', 'ZhengshuController@meZhengshu'); Route::get('/zhengshus', 'ZhengshuController@index'); Route::get('/zhengshu/resources', 'ZhengshuController@resources'); Route::get('/zhengshu/chengjius', 'ChengjiuController@index'); Route::get('/zhengshu/chengjiu/download', 'ChengjiuController@download'); });