...
|
...
|
@@ -9,12 +9,12 @@ const auth = require('../../doraemon/middleware/auth'); |
|
|
const article = require('./controllers/article');
|
|
|
const y100 = require('./controllers/y100');
|
|
|
|
|
|
router.post('/like', article.like);
|
|
|
router.get('/list', article.list);
|
|
|
router.get('/listNoImg', article.listNoImg);
|
|
|
router.get('/listNoUser', article.listNoUser);
|
|
|
router.post('/publish', auth, article.publish);
|
|
|
router.post('/saveScore', article.publishWithNoImg);
|
|
|
router.post('/like', article.like); // 点赞
|
|
|
router.get('/list', article.list); // 文章列表
|
|
|
router.get('/listNoImg', article.listNoImg); // 无图文章列表
|
|
|
router.get('/listNoUser', article.listNoUser); // 无用户文章列表
|
|
|
router.post('/publish', auth, article.publish); // 发布文章
|
|
|
router.post('/saveScore', article.publishWithNoImg); // 发布无图文章
|
|
|
router.get('/listScore', article.listWithUser);
|
|
|
router.get('/querySingle', article.querySingle);
|
|
|
router.get('/queryByCodeName', article.queryByCodeName);
|
...
|
...
|
|