lrf402788946 hace 4 años
padre
commit
03c54dd53e
Se han modificado 1 ficheros con 2 adiciones y 1 borrados
  1. 2 1
      app/router/patent/notice.js

+ 2 - 1
app/router/patent/notice.js

@@ -7,6 +7,7 @@ module.exports = app => {
   const vision = 'v0';
   const index = 'patent';
   const target = 'notice';
-  router.resources(target, `${profix}${vision}/${index}/${target}`, controller[index][target]); // index、create、show、destroy
+  const metaTime = app.middleware.createTime();
+  router.resources(target, `${profix}${vision}/${index}/${target}`, metaTime, controller[index][target]); // index、create、show、destroy
   router.post(target, `${profix}${vision}/${index}/${target}/update/:id`, controller[index][target].update);
 };