Skip to content

Commit

Permalink
Add default route JC-720
Browse files Browse the repository at this point in the history
  • Loading branch information
TebyakinaEkaterina committed Aug 20, 2024
1 parent a330daa commit 2113f69
Showing 1 changed file with 6 additions and 2 deletions.
8 changes: 6 additions & 2 deletions apps/react/src/routes/RootRouter.tsx
Original file line number Diff line number Diff line change
@@ -1,11 +1,15 @@
import { FC } from 'react';
import { RouteObject, useRoutes } from 'react-router-dom';
import { Navigate, RouteObject, useRoutes } from 'react-router-dom';

import { genresRoutes } from '../features/genres/routes';
import { animeRoutes } from '../features/anime/routes';
import { animeRoutes, ANIME_PATH } from '../features/anime/routes';
import { studiosRoutes } from '../features/studios/routes';

const routes: RouteObject[] = [
{
path: '*',
element: <Navigate to={ANIME_PATH} />,
},
...animeRoutes,
...genresRoutes,
...studiosRoutes,
Expand Down

0 comments on commit 2113f69

Please sign in to comment.