Skip to content

Commit

Permalink
feat :: error page route
Browse files Browse the repository at this point in the history
  • Loading branch information
dutexion committed Apr 16, 2024
1 parent 5aa6398 commit 3e21fbe
Showing 1 changed file with 5 additions and 0 deletions.
5 changes: 5 additions & 0 deletions src/router/router.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -3,6 +3,7 @@ import { Layout } from './layout';
import { Main } from '../pages/Main';
import { Team } from '@/pages/Team';
import { TeamCreate } from '@/pages/Team/Create';
import { Error } from '@/pages/Error';

export const Router = createBrowserRouter([
{
Expand All @@ -17,6 +18,10 @@ export const Router = createBrowserRouter([
{ path: 'create', element: <TeamCreate /> },
],
},
{
path: '*',
element: <Error />,
},
],
},
]);

0 comments on commit 3e21fbe

Please sign in to comment.