123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110 |
- <?php
- use Illuminate\Http\Request;
- 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::middleware('auth:api')->get('/user', function (Request $request) {
- return $request->user();
- });
- Route::get('/token/test', 'Api\TestController@getToken');
- Route::get('/getVideoStatus', 'Api\TestController@getVideoStatus');
- Route::get('/getAlbumStatus', 'Api\TestController@getAlbumStatus');
- # 小程序用户登录
- Route::post('/users/loginCode', 'Api\UserController@loginCode');
- # 小程序发送验证码
- Route::post('/users/sendMobileCode', 'Api\UserController@sendMobileCode');
- # 小程序验证码登录
- Route::post('/users/loginMobileCode', 'Api\UserController@loginMobileCode');
- Route::group(['namespace' => 'Api'], function() {
- # 素材内容相关
- Route::group(['prefix' => 'material'], function(){
- # 上传素材
- Route::post('upload', 'MaterialController@upload');
- # 素材列表
- Route::get('list', 'MaterialController@list');
- });
- # 内容库管理
- Route::group(['prefix' => 'albumManage'], function(){
- # 创建短剧
- Route::post('createAlbum', 'AlbumManageController@createAlbum');
- # 编辑短剧/添加剧集
- Route::post('editAlbum', 'AlbumManageController@editAlbum');
- # 短剧列表
- Route::get('albumList', 'AlbumManageController@albumList');
- # 短剧详情
- Route::get('albumDetail', 'AlbumManageController@albumDetail');
- # 短剧授权
- Route::post('albumAuth', 'AlbumManageController@albumAuth');
- # 页面绑定
- Route::post('bindPage', 'AlbumManageController@bindPage');
- # 短剧送审
- Route::post('albumToExamine', 'AlbumManageController@albumToExamine');
- # 短剧上线
- Route::post('albumOnline', 'AlbumManageController@albumOnline');
- # 查询审核结果
- Route::post('albumFetch', 'AlbumManageController@albumFetch');
- });
- # 广告管理
- Route::group(['prefix' => 'adManage'], function(){
- # 广告位列表
- Route::get('adList', 'AdManageController@adList');
- # 新增广告位
- Route::post('adCreate', 'AdManageController@adCreate');
- # 变更广告位状态
- Route::post('updateAdStatus', 'AdManageController@updateAdStatus');
- });
- # 短剧
- Route::group(['prefix' => 'album'], function(){
- # 短剧列表
- Route::get('albumList', 'AlbumController@albumList');
- # 短剧详情
- Route::get('albumDetail', 'AlbumController@albumDetail');
- });
- # 小程序用户
- Route::group(['prefix' => 'users'], function() {
- # 收藏浏览列表
- Route::get('likeList', 'UserController@likeList');
- # 收藏浏览数据上报
- Route::post('like', 'UserController@like');
- # 用户观看广告数据上报
- Route::post('watchAd', 'UserController@watchAd');
- # 保存抖音授权后的用户信息
- Route::post('userProfile', 'UserController@userProfile');
- });
- # IM客服
- Route::group(['prefix' => 'customerService'], function(){
- Route::post('getService', 'CustomerServiceController@getCustomerService');
- });
- # 广告
- Route::group(['prefix' => 'ad'], function() {
- # 获取广告位ID
- Route::get('getAdPlacement', 'AdController@getAdPlacement');
- });
- # 异常
- Route::group(['prefix' => 'exception'], function() {
- # 异常数据上报
- Route::post('report', 'ExceptionController@report');
- });
- });
|