فهرست منبع

change path name

ryuichi-e 5 سال پیش
والد
کامیت
42619dc804
1فایلهای تغییر یافته به همراه2 افزوده شده و 2 حذف شده
  1. 2 2
      src/server/routes/apiv3/bookmarks.js

+ 2 - 2
src/server/routes/apiv3/bookmarks.js

@@ -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 })