|
|
@ -2,6 +2,8 @@ import { lazy } from 'react' |
|
|
|
|
|
|
|
const Overview = lazy(() => import('../views/Overview')) |
|
|
|
const Search = lazy(() => import('../views/Search')) |
|
|
|
const AllMaterial = lazy(() => import('../views/AllMaterial')) |
|
|
|
const MaterialKind = lazy(() => import('../views/MaterialKind')) |
|
|
|
|
|
|
|
const routes = [ |
|
|
|
{ |
|
|
@ -12,6 +14,14 @@ const routes = [ |
|
|
|
path: '/search', |
|
|
|
element: <Search />, |
|
|
|
}, |
|
|
|
{ |
|
|
|
path: '/all_material', |
|
|
|
element: <AllMaterial />, |
|
|
|
}, |
|
|
|
{ |
|
|
|
path: '/material_kind', |
|
|
|
element: <MaterialKind />, |
|
|
|
}, |
|
|
|
] |
|
|
|
|
|
|
|
export default routes |