فهرست منبع

修改路由方法

lrf 3 سال پیش
والد
کامیت
be08fdeed8
2فایلهای تغییر یافته به همراه2 افزوده شده و 2 حذف شده
  1. 1 1
      app/z_router/apply.js
  2. 1 1
      app/z_router/buy.js

+ 1 - 1
app/z_router/apply.js

@@ -5,7 +5,7 @@ module.exports = app => {
   const { router, controller } = app;
   const { router, controller } = app;
   const profix = '/api/hc/';
   const profix = '/api/hc/';
   const target = 'apply';
   const target = 'apply';
-  router.post(target, `${profix}${target}/export`, controller[target].export);
+  router.get(target, `${profix}${target}/export`, controller[target].export);
   router.post(target, `${profix}${target}/compare`, controller[target].compare);
   router.post(target, `${profix}${target}/compare`, controller[target].compare);
   router.resources(target, `${profix}${target}`, controller[target]); // index、create、show、destroy
   router.resources(target, `${profix}${target}`, controller[target]); // index、create、show、destroy
   router.post(target, `${profix}${target}/update/:id`, controller[target].update);
   router.post(target, `${profix}${target}/update/:id`, controller[target].update);

+ 1 - 1
app/z_router/buy.js

@@ -5,7 +5,7 @@ module.exports = app => {
   const { router, controller } = app;
   const { router, controller } = app;
   const profix = '/api/hc/';
   const profix = '/api/hc/';
   const target = 'buy';
   const target = 'buy';
-  router.post(target, `${profix}${target}/export`, controller[target].export);
+  router.get(target, `${profix}${target}/export`, controller[target].export);
   router.resources(target, `${profix}${target}`, controller[target]); // index、create、show、destroy
   router.resources(target, `${profix}${target}`, controller[target]); // index、create、show、destroy
   router.post(target, `${profix}${target}/update/:id`, controller[target].update);
   router.post(target, `${profix}${target}/update/:id`, controller[target].update);
 };
 };