@@ -149,7 +149,8 @@ module.exports = (crowi) => {
router.get('/:userId', accessTokenParser, loginRequired, validator.myBookmarkList, apiV3FormValidator, async(req, res) => {
const { userId } = req.params;
- const { page, limit } = req.query;
+ const page = req.query.page;
+ const limit = req.query.limit || 30;
if (userId == null) {
return res.apiv3Err('User id is not found or forbidden', 400);
}
@@ -97,7 +97,7 @@ module.exports = (crowi) => {
*/
router.get('/list', certifySharedPage, accessTokenParser, loginRequired, validator.retrieveRevisions, apiV3FormValidator, async(req, res) => {
const pageId = req.query.pageId;
- const pagingLimit = req.query.pagingLimit;
+ const pagingLimit = req.query.pagingLimit || 10;
const { isSharedPage } = req;
const selectedPage = parseInt(req.query.selectedPage) || 1;