Explorar el Código

change path name

ryuichi-e hace 5 años
padre
commit
42619dc804
Se han modificado 1 ficheros con 2 adiciones y 2 borrados
  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
   // 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 {
     try {
       const bookmark = await Bookmark
       const bookmark = await Bookmark
         .find({ user: userId })
         .find({ user: userId })