ruifeng_liu %!s(int64=3) %!d(string=hai) anos
pai
achega
a669f44709
Modificáronse 1 ficheiros con 1 adicións e 1 borrados
  1. 1 1
      app/router/patent/patentapply.js

+ 1 - 1
app/router/patent/patentapply.js

@@ -11,5 +11,5 @@ module.exports = app => {
   const record = app.middleware.patentapplyRecord(`${index}.${target}`);
   router.resources(target, `${profix}${vision}/${index}/${target}`, metaTime, record, controller[index][target]); // index、create、show、destroy
   router.post(target, `${profix}${vision}/${index}/${target}/check`, controller[index][target].check);
-  router.post(target, `${profix}${vision}/${index}/${target}/update/:id`, controller[index][target].update);
+  router.post(target, `${profix}${vision}/${index}/${target}/update/:id`, record, controller[index][target].update);
 };