test: blacklist in middleware/access-control

This commit is contained in:
DIYgod
2019-01-24 16:02:47 +08:00
parent d667a049b6
commit 36eae92311
6 changed files with 68 additions and 23 deletions

View File

@@ -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',
},
],
};