Skip to content

Commit

Permalink
refactor: router.ts.
Browse files Browse the repository at this point in the history
  • Loading branch information
JoseAlvesdev committed Sep 7, 2024
1 parent 4795398 commit 1db443f
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/router.ts
Original file line number Diff line number Diff line change
Expand Up @@ -40,7 +40,7 @@ const router: () => Promise<void> = async (): Promise<void> => {

if (!match) {
match = {
route: routes[routes.length - 1],
route: routes.find((route: IRoute): boolean => route.path === '/404') || routes[routes.length - 1],
isMatch: true
};
}
Expand Down

0 comments on commit 1db443f

Please sign in to comment.