test: add access-control test cases

This commit is contained in:
DIYgod
2020-05-08 11:26:43 +08:00
parent aa507ad43d
commit 283468d43a
3 changed files with 48 additions and 7 deletions

View File

@@ -22,9 +22,6 @@ for (const project in RouterPath) {
// index
router.get('/', require('./routes/index'));
// test
router.get('/test/:id', require('./routes/test'));
router.get('/robots.txt', async (ctx, next) => {
if (config.disallowRobot) {
ctx.set('Content-Type', 'text/plain');
@@ -35,6 +32,9 @@ router.get('/robots.txt', async (ctx, next) => {
await next();
});
// test
router.get('/test/:id', require('./routes/test'));
// RSSHub
router.get('/rsshub/rss', require('./routes/rsshub/routes')); // 弃用
router.get('/rsshub/routes', require('./routes/rsshub/routes'));