mirror of
https://github.com/DIYgod/RSSHub.git
synced 2025-12-10 07:12:51 +08:00
test: add access-control test cases
This commit is contained in:
@@ -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'));
|
||||
|
||||
Reference in New Issue
Block a user