zhangchangchun 6 年 前
コミット
fc9182f3e8
共有1 個のファイルを変更した2 個の追加2 個の削除を含む
  1. 2 2
      routes/api.php

+ 2 - 2
routes/api.php

@@ -39,12 +39,12 @@ $api->version('v1', [
         //新增编辑
         $api->post('addShop', 'ShopController@addShop');
         //编辑
-        $api->post('editShop', 'ShopController@editShop');
+        $api->put('editShop', 'ShopController@editShop');
         //商户列表
         $api->get('shopList', 'ShopController@list');
         //用户列表
         //商户详情
-        $api->post('shopView', 'ShopController@view');
+        $api->get('shopView', 'ShopController@view');
 
         $api->get('user', 'UserController@index');
         //用户列表