|
|
@@ -105,8 +105,8 @@ module.exports = (crowi) => {
|
|
|
|
|
|
// select page from bookmark where userid = userid
|
|
|
|
|
|
- router.get('/users', accessTokenParser, loginRequired, csrf, apiV3FormValidator, async(req, res) => {
|
|
|
- const { userId } = req.body;
|
|
|
+ router.get('/byUser', accessTokenParser, loginRequired, csrf, apiV3FormValidator, async(req, res) => {
|
|
|
+ const { userId } = req.query;
|
|
|
try {
|
|
|
const bookmark = await Bookmark
|
|
|
.find({ user: userId })
|