Initial commit from Create vite
This commit is contained in:
34
src/routers/index.tsx
Normal file
34
src/routers/index.tsx
Normal file
@@ -0,0 +1,34 @@
|
||||
import { createBrowserRouter } from "react-router-dom"
|
||||
import Dashboard from "@/admin/dashboard/page"
|
||||
import AdminLayout from "@/admin/layout"
|
||||
import HomePage from "@/home"
|
||||
import ClientPage from "@/home/client"
|
||||
import HelpPage from "@/home/help"
|
||||
import IpLinePage from "@/home/ipLine"
|
||||
import LayoutPage from "@/home/layout"
|
||||
import LoginPage from "@/home/login"
|
||||
import ProductPage from "@/home/product"
|
||||
import SoftDownloadPage from "@/home/softDownload"
|
||||
export const router = createBrowserRouter([
|
||||
{
|
||||
path: "/",
|
||||
element: <LayoutPage />,
|
||||
children: [
|
||||
{ index: true, element: <HomePage /> },
|
||||
{ path: "product", element: <ProductPage /> },
|
||||
{ path: "ipline", element: <IpLinePage /> },
|
||||
{ path: "softdownload", element: <SoftDownloadPage /> },
|
||||
{ path: "help", element: <HelpPage /> },
|
||||
{ path: "client", element: <ClientPage /> },
|
||||
],
|
||||
},
|
||||
{
|
||||
path: "/login",
|
||||
element: <LoginPage />,
|
||||
},
|
||||
{
|
||||
path: "/admin",
|
||||
element: <AdminLayout />,
|
||||
children: [{ index: true, element: <Dashboard /> }],
|
||||
},
|
||||
])
|
||||
Reference in New Issue
Block a user