123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127 |
- <?php
- use Illuminate\Http\Request;
- use Illuminate\Support\Facades\Route;
- Route::middleware('auth:api')->get('/user', function (Request $request) {
- return $request->user();
- });
- Route::get("/swagger","BaseController@swagger");
- Route::get("/loadswagger","BaseController@loadSwagger");
- Route::get("/test","BaseController@test");
- Route::any("/checkServer/{code}","WechatController@checkServer");
- Route::get("/wechat/setmenu","WechatController@setMenu");
- Route::get("/wechat/account/config","WechatController@accountConfig");
- Route::any("wechat/account/callback","WechatController@accountCallback");
- Route::any("transfer/{userId}/{actId}","Home\HomeController@getTransferLinkurl");
- Route::prefix("cron")->namespace("Cron")->group(function (){
-
- Route::get("meituan/orders","CronController@meituanOrders");
-
- Route::get("jutuike/orders","CronController@jutuikeOrders");
-
- Route::get("pdd/orders","CronController@pddOrders");
-
- Route::get("send/order/template","CronController@sendOrderTemplate");
-
- Route::get("settlement/order","CronController@settlementOrderCommission");
-
- Route::get("transfer/finance","CronController@transferFinance");
-
- Route::get("callback/cash","CronController@callbackCash");
- });
- Route::prefix("user")->namespace("User")->middleware(["checkAuth"])->group(function (){
-
- Route::get("info","UserController@getUserInfo");
-
- Route::get("fans/list","UserController@getFansList");
-
- Route::get("fianance/list","UserController@getFinanceList");
-
- Route::get("fianance/detail","UserController@getFinanceDetail");
-
- Route::post("cash","UserController@getCash");
-
- Route::get("recommend/url","UserController@getRecommendUrl");
- });
- Route::prefix("order")->namespace("Order")->middleware(["checkAuth"])->group(function (){
-
- Route::get("list","OrderController@getOrderList");
-
- Route::get("type/list","OrderController@getOrderTypeList");
-
- Route::get("detail","OrderController@getOrderDetail");
- });
- Route::prefix("home")->namespace("Home")->middleware(["checkAuth"])->group(function (){
-
- Route::get("list","HomeController@getHomeList");
-
- Route::get("commission/list","HomeController@getCommissionList");
- });
- Route::prefix("pdd")->namespace("Pdd")->middleware(["checkAuth"])->group(function (){
-
- Route::get("cate/list","PddController@getCateList");
-
- Route::get("goods/list","PddController@getGoodsList");
-
- Route::get("goods/recommendurl","PddController@getGoodsRecommendUrl");
- });
- Route::prefix("buy")->namespace("Buy")->middleware(["checkAuth"])->group(function (){
-
- Route::get("cate/list","BuyController@getCateList");
-
- Route::post("goods/list","BuyController@getGoodsList");
-
- Route::get("goods/detail","BuyController@getGoodsDetail");
-
- Route::get("goods/search","BuyController@getGoodsSearch");
- });
|