123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122 |
- <?php
- /*
- * This file is part of the Jiannei/lumen-api-starter.
- *
- * (c) Jiannei <longjian.huang@foxmail.com>
- *
- * 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');
- });
|