Removed useless catch
This commit is contained in:
@ -94,8 +94,5 @@ router.get('*', async ctx => {
|
|||||||
// middleware
|
// middleware
|
||||||
koa.use(subdomainRedirect());
|
koa.use(subdomainRedirect());
|
||||||
koa.use(router.routes());
|
koa.use(router.routes());
|
||||||
koa.use(async () => {
|
|
||||||
throw httpErrors.NotFound();
|
|
||||||
});
|
|
||||||
|
|
||||||
export default koa;
|
export default koa;
|
||||||
|
Reference in New Issue
Block a user