mirror of
https://github.com/DIYgod/RSSHub.git
synced 2025-12-05 20:27:52 +08:00
test: middleware/error
This commit is contained in:
@@ -87,6 +87,9 @@ router.get('/', async (ctx) => {
|
||||
});
|
||||
|
||||
router.get('/test/:id', (ctx) => {
|
||||
if (ctx.params.id === '0') {
|
||||
throw Error('Error test');
|
||||
}
|
||||
const item = [];
|
||||
for (let i = 1; i < 6; i++) {
|
||||
item.push({
|
||||
|
||||
Reference in New Issue
Block a user