-
Notifications
You must be signed in to change notification settings - Fork 0
/
router.jsx
39 lines (37 loc) · 868 Bytes
/
router.jsx
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
import Index from './Route/Index/Index';
import Charts from './Route/Charts/Charts';
import ChartScore from './Route/ChartScore/ChartScore';
import ChartAddScore from './Route/ChartAddScore/ChartAddScore';
import AddChart from './Route/Admin/AddChart/AddChart';
import NotFound from './Route/NotFound/NotFound';
const router = [
{
path: "/",
element: <Index />,
},
{
path: "/charts",
element: <Charts />,
},
{
path: "/charts/:chartId/score",
element: <ChartScore />,
},
{
path: "/charts/:chartId/score/add",
element: <ChartAddScore />,
},
{
path: "/how-to",
element:<div>How to - Work In progress</div>,
},
{
path: "/admin/charts/add",
element: <AddChart />,
},
{
path: "*",
element: <NotFound />,
},
]
export default router;