Ver Fonte

change SharLink from

ryuichi-e há 5 anos atrás
pai
commit
7b6f4189ab
1 ficheiros alterados com 4 adições e 1 exclusões
  1. 4 1
      src/server/routes/apiv3/share-links.js

+ 4 - 1
src/server/routes/apiv3/share-links.js

@@ -22,7 +22,10 @@ module.exports = (crowi) => {
   const loginRequired = require('../../middleware/login-required')(crowi);
   const csrf = require('../../middleware/csrf')(crowi);
 
-  const ShareLink = crowi.model('ShareLink');
+  const {
+    ShareLink,
+    Page,
+  } = crowi.models;
 
   // TDOO write swagger
   router.get('/', loginRequired, async(req, res) => {