zhangchangchun 6 years ago
parent
commit
fc9182f3e8
1 changed files with 2 additions and 2 deletions
  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('addShop', 'ShopController@addShop');
         //编辑
         //编辑
-        $api->post('editShop', 'ShopController@editShop');
+        $api->put('editShop', 'ShopController@editShop');
         //商户列表
         //商户列表
         $api->get('shopList', 'ShopController@list');
         $api->get('shopList', 'ShopController@list');
         //用户列表
         //用户列表
         //商户详情
         //商户详情
-        $api->post('shopView', 'ShopController@view');
+        $api->get('shopView', 'ShopController@view');
 
 
         $api->get('user', 'UserController@index');
         $api->get('user', 'UserController@index');
         //用户列表
         //用户列表