Authored by 邱骏

修改投票接口名称

... ... @@ -454,7 +454,7 @@ const article = {
* @param res
* @param next
*/
like(req, res, next) {
likeById(req, res, next) {
const actId = req.body.actId;
const articleId = req.body.articleId;
... ...
... ... @@ -8,7 +8,7 @@ const router = express.Router(); // eslint-disable-line
const auth = require('../../doraemon/middleware/auth');
const article = require('./controllers/article');
router.post('/like', article.like);
router.post('/likeById', article.likeById);
router.get('/list', article.list);
router.get('/listNoImg', article.listNoImg);
router.get('/listNoUser', article.listNoUser);
... ...