| 123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124 |
- <?php
- use Illuminate\Http\Request;
- /*
- |--------------------------------------------------------------------------
- | 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::get('ping', 'AuthController@pong');
- Route::get('chunqiu/captcha', function () {
- return app('captcha')->create('sanguo', true);
- });
- // 授权
- Route::group(
- [
- 'prefix' => '/auth',
- ],
- function () {
- Route::post('/login', 'AuthController@login')->name('auth.login');
- Route::post('/refresh/token', 'AuthController@refreshToken')->name('auth.refresh');
- }
- );
- // 上传
- /*Route::group(
- [
- 'prefix' => '/upload',
- ],
- function () {
- // Plupload上传.
- Route::any('/plupload', 'PluploadController@upload');
- // 百度UEditor
- Route::any('/ueditor', 'UeditorController@service');
- }
- );*/
- // 管理员
- Route::group(
- [
- 'prefix' => '/agent',
- ],
- function () {
- // 代理列表
- Route::post('/lists', 'AgentController@lists');
- // 代理添加
- Route::post('/create', 'AgentController@create');
- // 账户信息修改
- Route::post('/modify', 'AgentController@modify');
- // 账户信息.
- Route::post('/detail/me', 'AgentController@detailMe');
- // 匹配用户名
- Route::post('check/username', 'AgentController@checkUsername');
- // 修改下级用户
- Route::post('edit/level/agent', 'AgentController@editLevelAgent');
- }
- );
- // 提现管理
- Route::group(
- [
- 'prefix' => '/withdraw',
- ],
- function () {
- // 列表
- Route::post('/lists', 'WithdrawController@lists');
- // 发起提现申请
- Route::post('/apply', 'WithdrawController@apply');
- //账户详情
- Route::post('/account/info', 'WithdrawController@accountInfo');
- // 提现方式列表.
- Route::post('/bank/info', 'WithdrawController@bankInfo');
- // 新增提现方式
- Route::post('/bank/create', 'WithdrawController@bankCreate');
- // usdtNetWork
- Route::post('/usdt/net', 'WithdrawController@usdtNetWork');
- }
- );
- // 分享管理
- Route::group(
- [
- 'prefix' => '/share',
- ],
- function () {
- // 分享链接列表
- Route::post('/lists', 'ShareUrlController@lists');
- }
- );
- // APP应用
- Route::group(
- [
- 'prefix' => '/app',
- ],
- function () {
- // 应用列表
- Route::post('/lists', 'AppController@lists');
- Route::post('/pack', 'AppController@pack');
- }
- );
- // 统计
- Route::group(
- [
- 'prefix' => '/total',
- ],
- function () {
- // 首页
- Route::post('/home', 'TotalController@home');
- // 统计列表
- Route::post('/lists', 'TotalController@lists');
- // cpa统计
- Route::post('/cpa/lists', 'TotalController@cpaLists');
- }
- );
|