You cannot select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
33 lines
659 B
JavaScript
33 lines
659 B
JavaScript
import { lazy } from 'react';
|
|
|
|
// project imports
|
|
import MainLayout from 'layout/MainLayout';
|
|
import Loadable from 'ui-component/Loadable';
|
|
import AuthGuard from 'utils/route-guard/AuthGuard';
|
|
|
|
// sample page routing
|
|
const SamplePage = Loadable(lazy(() => import('views/sample-page')));
|
|
|
|
// ==============================|| MAIN ROUTING ||============================== //
|
|
|
|
const MainRoutes = {
|
|
path: '/',
|
|
element: (
|
|
<AuthGuard>
|
|
<MainLayout />
|
|
</AuthGuard>
|
|
),
|
|
children: [
|
|
{
|
|
path: '/',
|
|
element: <SamplePage />
|
|
},
|
|
{
|
|
path: '/sample-page',
|
|
element: <SamplePage />
|
|
}
|
|
]
|
|
};
|
|
|
|
export default MainRoutes;
|