|
import { lazy } from 'react' |
|
|
|
|
|
import MainLayout from 'layout/MainLayout' |
|
import Loadable from 'ui-component/loading/Loadable' |
|
|
|
|
|
const Chatflows = Loadable(lazy(() => import('views/chatflows'))) |
|
|
|
|
|
const Marketplaces = Loadable(lazy(() => import('views/marketplaces'))) |
|
|
|
|
|
const APIKey = Loadable(lazy(() => import('views/apikey'))) |
|
|
|
|
|
|
|
const MainRoutes = { |
|
path: '/', |
|
element: <MainLayout />, |
|
children: [ |
|
{ |
|
path: '/', |
|
element: <Chatflows /> |
|
}, |
|
{ |
|
path: '/chatflows', |
|
element: <Chatflows /> |
|
}, |
|
{ |
|
path: '/marketplaces', |
|
element: <Marketplaces /> |
|
}, |
|
{ |
|
path: '/apikey', |
|
element: <APIKey /> |
|
} |
|
] |
|
} |
|
|
|
export default MainRoutes |
|
|