dyjh 6 éve
szülő
commit
604fd63c48
1 módosított fájl, 37 hozzáadás és 1 törlés
  1. 37 1
      routes/web.php

+ 37 - 1
routes/web.php

xqd xqd xqd
@@ -11,10 +11,14 @@
 */
 
 $apiRoute = [
+    /*
+     * 画册路由
+     */
     'api/album/get-banner' => ['real' => 'Api/V1/Album/albumGetBanner','method'=>'get','auth'=>false],
     'api/album/xyx_login' => ['real' => 'Api/V1/Album/albumXyxLogin','method'=>'post','auth'=>false],
     'api/album/cat' => ['real' => 'Api/V1/Album/albumCat','method'=>'get','auth'=>false],
     'api/album/setting' => ['real' => 'Api/V1/Album/albumSetting','method'=>'get','auth'=>false],
+
     'api/album/customer-goods' => ['real' => 'Api/V1/Album/albumCustomerGoods','method'=>'post','auth'=>true],
     'api/album/customer-goods-detail' => ['real' => 'Api/V1/Album/albumCustomerGoodsDetail','method'=>'post','auth'=>true],
     'api/album/album/get-count-favorite' => ['real' => 'Api/V1/Album/albumGetCountOfFavorite','method'=>'post','auth'=>true],
@@ -58,7 +62,39 @@ $apiRoute = [
     'api/album/get-agent-address' => ['real' => 'Api/V1/Album/albumGetAgentAdress','method'=>'get','auth'=>true],
 
 
+    /*
+     * 家具路由
+     */
+
+    'api/attachment/upload' => ['real' => 'Api/V1/Attachment/upload','method'=>'post','auth'=>false],
+    'api/furniture/setting' => ['real' => 'Api/V1/Furniture/furnitureSetting','method'=>'get','auth'=>false],
+    'api/furniture/news_detail' => ['real' => 'Api/V1/Furniture/furnitureNewsDetail','method'=>'get','auth'=>false],
+    'api/furniture/news_list' => ['real' => 'Api/V1/Furniture/furnitureNewsList','method'=>'get','auth'=>false],
+    'api/furniture/goods_list' => ['real' => 'Api/V1/Furniture/furnitureGoodsList','method'=>'get','auth'=>false],
+    'api/furniture/service_login' => ['real' => 'Api/V1/Furniture/serviceLogin','method'=>'post','auth'=>false],
+    'api/furniture/getfurnitureads' => ['real' => 'Api/V1/Furniture/getFurnitureAds','method'=>'get','auth'=>false],
+    'api/furniture/newgoods_list' => ['real' => 'Api/V1/Furniture/newgoods_list','method'=>'get','auth'=>false],
+    'api/furniture/newgoods_index' => ['real' => 'Api/V1/Furniture/newgoods_index','method'=>'get','auth'=>false],
 
+    'api/furniture/getattr' => ['real' => 'Api/V1/Furniture/getAttr','method'=>'get','auth'=>true],
+    'api/furniture/add_comments' => ['real' => 'Api/V1/Furniture/furnitureAddComments','method'=>'any','auth'=>true],
+    'api/furniture/createorder' => ['real' => 'Api/V1/Furniture/createOrder','method'=>'post','auth'=>true],
+    'api/furniture/getorder' => ['real' => 'Api/V1/Furniture/getOrder','method'=>'get','auth'=>true],
+    'api/furniture/getorderdetail' => ['real' => 'Api/V1/Furniture/getOrderDetail','method'=>'get','auth'=>true],
+    'api/furniture/getprogress' => ['real' => 'Api/V1/Furniture/getProgress','method'=>'get','auth'=>true],
+    'api/furniture/getreviewcount' => ['real' => 'Api/V1/Furniture/getReviewCount','method'=>'get','auth'=>true],
+    'api/furniture/addreview' => ['real' => 'Api/V1/Furniture/addReview','method'=>'post','auth'=>true],
+    'api/furniture/updatestatus' => ['real' => 'Api/V1/Furniture/updateStatus','method'=>'post','auth'=>true],
+    'api/furniture/getphonenumber' => ['real' => 'Api/V1/Furniture/getPhoneNumber','method'=>'post','auth'=>true],
+    'api/furniture/getqrcode' => ['real' => 'Api/V1/Furniture/getQrcode','method'=>'get','auth'=>true],
+    'api/furniture/ordercount' => ['real' => 'Api/V1/Furniture/orderCount','method'=>'get','auth'=>true],
+    'api/furniture/searchlist' => ['real' => 'Api/V1/Furniture/searchList','method'=>'get','auth'=>true],
+    'api/furniture/printorder' => ['real' => 'Api/V1/Furniture/printOrder','method'=>'any','auth'=>true],
+    'api/furniture/saveformid' => ['real' => 'Api/V1/Furniture/saveFormId','method'=>'post','auth'=>true],
+    'api/furniture/getmorecomments' => ['real' => 'Api/V1/Furniture/getMoreComments','method'=>'get','auth'=>true],
+    'api/furniture/addtolike' => ['real' => 'Api/V1/Furniture/addToLike','method'=>'get','auth'=>true],
+    'api/furniture/newgoods_addcomment' => ['real' => 'Api/V1/Furniture/newgoods_addcomment','method'=>'post','auth'=>true],
+    'api/furniture/newgoods_addbooking' => ['real' => 'Api/V1/Furniture/newgoods_addbooking','method'=>'post','auth'=>true],
 ];
 /*$auth = [
     'Api/V1/Album/albumGoods' => 'post',
@@ -159,7 +195,7 @@ if (strpos(request()->getRequestUri(), '/addons/') !== false) {
         /*    });
         });*/
 
-    } else {
+    } else if (strpos(request()->getRequestUri(), 'Admin') !== false) {
         $route_url = request()->input('route');
         $route_url = ucfirst($route_url);
         $route = $baseRoute = explode('/',$route_url);