diff --git a/src/router.ts b/src/router.ts index 0f22090..a8ae510 100644 --- a/src/router.ts +++ b/src/router.ts @@ -40,7 +40,7 @@ const router: () => Promise = async (): Promise => { if (!match) { match = { - route: routes[routes.length - 1], + route: routes.find((route: IRoute): boolean => route.path === '/404') || routes[routes.length - 1], isMatch: true }; }