123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246 |
- <?php
- use Illuminate\Support\Facades\Route;
- /*
- |--------------------------------------------------------------------------
- | API Routes
- |--------------------------------------------------------------------------
- |
- | Here is where you can register API routes for your application. These
- | routes are loaded by the RouteServiceProvider within a group which
- | is assigned the "api" middleware group. Enjoy building your API!
- |
- */
- Route::group(['namespace' => 'Api'], function(){
- Route::group(['namespace' => 'V1'], function(){
- //测试
- Route::resource('test', 'TestController');
- //微信信息通知地址(暂时没有用)
- Route::resource('wx_notification', 'WxNotificationController');
- //统一微信入口 授权拿第三方用户id
- Route::get('third_wx_auth', 'ThirdWxController@auth');
- //统一微信入口 获取JSSDK
- Route::post('third_wx_jssdk', 'ThirdWxController@getJsSdk');
- //统一微信入口 授权拿第三方用户id
- Route::get('third_user_info', 'ThirdWxController@getUserInfo');
- //统一用户名密码入口
- Route::resource('third_up', 'ThirdUpController');
- //iOS 审核显示
- Route::get('iOSshow', 'VersionController@iOSshow');
- //api认证
- Route::group(['middleware'=>['apiSign']], function(){
- //天气预报接口
- Route::resource('weather', 'WeatherController');
- //版本信息
- Route::resource('version', 'VersionController');
- //推荐
- Route::resource('commend', 'CommendController');
- //token验证
- Route::group(['middleware'=>['token']], function(){
- //退出登陆
- Route::resource('login_out', 'LoginOutController', ['only'=>['store']]);
- //用户
- Route::resource('user', 'UserController');
- //统一H5聊天
- Route::resource('third_h5_chat', 'ThirdH5ChatController');
- //上传图片
- Route::resource('upload', 'UploadController', ['only'=>['store']]);
- //AI聊天历史列表
- Route::get('AiChatList', 'Chat\AiChatController@index');
- //AI聊天发送数据
- Route::post('AiChatSendData', 'Chat\AiChatController@sendData');
- //banner
- // Route::resource('banner', 'BannerController', ['only'=>['index']]);
- // 系统配置
- // Route::resource('config', 'SysConfigController', ['only'=>['index']]);
- // //专家来了
- // Route::group(['namespace' => 'Specialist', 'prefix' => 'specialist'], function(){
- // //首页 一级栏目列表 二级栏目列表 栏目详情
- // Route::resource('index', 'IndexController');
- //// Route::resource('getChapterList', 'IndexController');
- // Route::get('getChapterList', 'IndexController@getChapterList')->name('getChapterList');
- // //详情 列表 详情
- // Route::resource('specialist_info', 'SpecialistInfoController');
- // });
- //心理大厅
- Route::group(['namespace' => 'Mentality', 'prefix' => 'mentality'], function(){
- //反馈意见
- // Route::resource('feedback','FeedBackController');
- // //量表分类 列表
- // Route::resource('scale_category', 'ScaleCategoryController');
- // //量表 列表
- // Route::resource('scale', 'ScaleController');
- // //获取数据
- // Route::get('gettestinfo', 'ScaleController@getTestInfo')->name('getTestInfo');
- //开始测评
- Route::get('start_test', 'ScaleController@startTest')->name('startTest');
- // //训练分类 列表
- // Route::resource('drill_category', 'DrillCategoryController');
- //// 训练 列表 详情
- // Route::resource('drill', 'DrillController');
- //// 训练扩展 详情
- // Route::resource('play', 'PlayController');
- // //心情记录 列表 详情 添加 修改
- // Route::resource('mood', 'MoodController');
- // //用户周记录 列表,详情
- // Route::resource('week', 'WeekController');
- // //心情等级 列表
- // Route::resource('mood_level', 'MoodLevelController');
- // //心情标签 列表
- // Route::resource('mood_tag', 'MoodTagController');
- // //睡眠等级 列表
- // Route::resource('sleep_level', 'SleepLevelController');
- //睡眠 列表 添加
- // Route::resource('sleep', 'SleepController');
- // //给未来的信 添加
- // Route::resource('letter', 'LetterController');
- // //统计 心情 睡眠
- // Route::resource('statistics', 'StatisticsController');
- // //统计心情下拉选择
- // Route::get('mood_select', 'StatisticsController@getMoodSelect')->name('statisticsMoodSelect');
- // //统计睡眠下拉选择
- // Route::get('sleep_select', 'StatisticsController@getSleepSelect')->name('statisticsSleepSelect');
- // //收藏 添加取消收藏
- // Route::resource('collect', 'CollectController');
- // //浏览记录 列表
- // Route::resource('browse_record', 'BrowseRecordController');
- });
- });
- //微信H5
- Route::group(['namespace' => 'MpUser' , 'prefix' => 'mp_user'], function(){
- Route::resource('access_token', 'AccessTokenController');
- Route::resource('mp_user', 'MpUserController'); //微信小程序登录
- });
- //微信公众号
- Route::group(['namespace' => 'MpService' , 'prefix' => 'mp_service'], function(){
- Route::resource('jsapi_sign', 'JsapiSignController');
- });
- // //专家来了
- // Route::group(['namespace' => 'Specialist', 'prefix' => 'specialist'], function(){
- // //首页 一级栏目列表 二级栏目列表 栏目详情
- // Route::resource('index', 'IndexController');
- //// Route::resource('getChapterList', 'IndexController');
- //// Route::get('getChapterList', 'IndexController@getChapterList')->name('getChapterList');
- // //详情 列表 详情
- // Route::resource('specialist_info', 'SpecialistInfoController');
- // });
- // Route::group(['namespace' => 'Mentality', 'prefix' => 'mentality'], function(){
- // //反馈意见
- // //量表分类 列表
- // Route::resource('scale_category', 'ScaleCategoryController');
- // //量表 列表
- // Route::resource('scale', 'ScaleController');
- // //获取数据
- // //开始测评
- // //训练分类 列表
- // Route::resource('drill_category', 'DrillCategoryController');
- // //训练 列表 详情
- // Route::resource('drill', 'DrillController');
- // Route::resource('play', 'PlayController');
- //
- // });
- // //专家来了
- // Route::group(['namespace' => 'Specialist', 'prefix' => 'specialist'], function(){
- // //首页 一级栏目列表 二级栏目列表 栏目详情
- // Route::resource('index', 'IndexController');
- // //详情 列表 详情
- // Route::resource('specialist_info', 'SpecialistInfoController');
- // });
- Route::resource('config', 'SysConfigController', ['only'=>['index']]);
- //banner
- Route::resource('banner', 'BannerController', ['only'=>['index']]);
- //量表分类
- Route::resource('scale_category', 'Mentality\ScaleCategoryController');
- //训练分类 列表
- Route::resource('drill_category', 'Mentality\DrillCategoryController');
- //专家来了
- Route::group(['namespace' => 'Specialist', 'prefix' => 'specialist'], function(){
- //首页 一级栏目列表 二级栏目列表 栏目详情
- Route::resource('index', 'IndexController');
- // Route::resource('getChapterList', 'IndexController');
- Route::get('getChapterList', 'IndexController@getChapterList')->name('getChapterList');
- Route::group(['middleware'=>['token']], function(){
- //专家来了点赞
- Route::get('thumbsUpNum/{id}', 'SpecialistInfoController@thumbsUpNum')->name('thumbsUpNum');
- //专家来了喜欢
- Route::get('loveNum/{id}', 'SpecialistInfoController@loveNum')->name('loveNum');
- //专家来了信息关联列表
- Route::get('specialistInfosAssociationList', 'SpecialistInfoController@specialistInfosAssociationList')->name('specialistInfosAssociationList');
- //专家来了留言
- Route::post('leaveMessage', 'SpecialistInfoController@leaveMessage')->name('leaveMessage');
- //详情 列表 详情
- Route::resource('specialist_info', 'SpecialistInfoController');
- });
- });
- Route::group(['namespace' => 'Mentality', 'prefix' => 'mentality', 'middleware'=>['token']], function(){
- //反馈意见
- Route::resource('feedback','FeedBackController');
- //量表分类 列表
- Route::resource('scale_category', 'ScaleCategoryController');
- //量表 列表
- Route::resource('scale', 'ScaleController');
- //获取数据
- Route::get('gettestinfo', 'ScaleController@getTestInfo')->name('getTestInfo');
- //开始测评
- // Route::get('start_test', 'ScaleController@startTest')->name('startTest');
- //训练分类 列表
- Route::resource('drill_category', 'DrillCategoryController');
- // 训练 列表 详情
- Route::resource('drill', 'DrillController');
- //训练点赞
- Route::get('drillContent/thumbsUpNum/{id}', 'DrillController@thumbsUpNum')->name('thumbsUpNum');
- //训练喜欢
- Route::get('drillContent/loveNum/{id}', 'DrillController@loveNum')->name('loveNum');
- //训练留言
- Route::post('drillContent/leaveMessage', 'DrillController@leaveMessage')->name('leaveMessage');
- //播放训练科目
- Route::get('drillContent/drillPlaySubject/{id}', 'DrillController@playSubject');
- // 训练扩展 详情
- Route::resource('play', 'PlayController');
- //心情记录 列表 详情 添加 修改
- Route::resource('mood', 'MoodController');
- //用户周记录 列表,详情
- Route::resource('week', 'WeekController');
- //心情等级 列表
- Route::resource('mood_level', 'MoodLevelController');
- //心情标签 列表
- Route::resource('mood_tag', 'MoodTagController');
- //睡眠等级 列表
- Route::resource('sleep_level', 'SleepLevelController');
- //睡眠 列表 添加
- Route::resource('sleep', 'SleepController');
- //给未来的信 添加
- Route::resource('letter', 'LetterController');
- //统计 心情 睡眠
- Route::resource('statistics', 'StatisticsController');
- //统计心情下拉选择
- Route::get('mood_select', 'StatisticsController@getMoodSelect')->name('statisticsMoodSelect');
- //统计睡眠下拉选择
- Route::get('sleep_select', 'StatisticsController@getSleepSelect')->name('statisticsSleepSelect');
- //收藏 添加取消收藏
- Route::resource('collect', 'CollectController');
- //浏览记录 列表
- Route::resource('browse_record', 'BrowseRecordController');
- });
- });
- });
- });
|