Authored by 邱骏

修改投票接口名称

@@ -454,7 +454,7 @@ const article = { @@ -454,7 +454,7 @@ const article = {
454 * @param res 454 * @param res
455 * @param next 455 * @param next
456 */ 456 */
457 - like(req, res, next) { 457 + likeById(req, res, next) {
458 const actId = req.body.actId; 458 const actId = req.body.actId;
459 const articleId = req.body.articleId; 459 const articleId = req.body.articleId;
460 460
@@ -8,7 +8,7 @@ const router = express.Router(); // eslint-disable-line @@ -8,7 +8,7 @@ const router = express.Router(); // eslint-disable-line
8 const auth = require('../../doraemon/middleware/auth'); 8 const auth = require('../../doraemon/middleware/auth');
9 const article = require('./controllers/article'); 9 const article = require('./controllers/article');
10 10
11 -router.post('/like', article.like); 11 +router.post('/likeById', article.likeById);
12 router.get('/list', article.list); 12 router.get('/list', article.list);
13 router.get('/listNoImg', article.listNoImg); 13 router.get('/listNoImg', article.listNoImg);
14 router.get('/listNoUser', article.listNoUser); 14 router.get('/listNoUser', article.listNoUser);