mirror of
https://github.com/DIYgod/RSSHub.git
synced 2025-12-09 14:40:23 +08:00
test: blacklist in middleware/access-control
This commit is contained in:
@@ -86,23 +86,22 @@ router.get('/', async (ctx) => {
|
||||
});
|
||||
});
|
||||
|
||||
router.get('/test', (ctx) => {
|
||||
router.get('/test/:id', (ctx) => {
|
||||
ctx.state.data = {
|
||||
title: 'DIYgod',
|
||||
link: 'https://diygod.me/',
|
||||
description: '测试路由 Test route',
|
||||
title: `Test ${ctx.params.id}`,
|
||||
link: 'https://github.com/DIYgod/RSSHub',
|
||||
item: [
|
||||
{
|
||||
title: 'Title1',
|
||||
description: 'Item1',
|
||||
pubDate: new Date('2018-4-2').toUTCString(),
|
||||
link: 'https://diygod.me/1',
|
||||
link: 'https://github.com/DIYgod/RSSHub/issues/1',
|
||||
},
|
||||
{
|
||||
title: 'Title2',
|
||||
description: 'Item2',
|
||||
pubDate: new Date('2018-4-10').toUTCString(),
|
||||
link: 'https://diygod.me/2',
|
||||
link: 'https://github.com/DIYgod/RSSHub/issues/2',
|
||||
},
|
||||
],
|
||||
};
|
||||
|
||||
Reference in New Issue
Block a user