|
|
@@ -567,6 +567,7 @@ module.exports = (crowi) => {
|
|
|
*/
|
|
|
router.get('/all-share-links/', /* loginRequiredStrictly, adminRequired, csrf, */ async(req, res) => {
|
|
|
const ShareLink = crowi.model('ShareLink');
|
|
|
+ // const Pages = crowi.model('page');
|
|
|
const page = parseInt(req.query.page) || 1;
|
|
|
const limit = 10;
|
|
|
const linkQuery = {};
|
|
|
@@ -576,6 +577,10 @@ module.exports = (crowi) => {
|
|
|
{
|
|
|
page,
|
|
|
limit,
|
|
|
+ populate: {
|
|
|
+ path: 'relatedPage',
|
|
|
+ select: 'path',
|
|
|
+ },
|
|
|
},
|
|
|
);
|
|
|
return res.apiv3({ paginateResult });
|