FinancialReimbursementSyste.../src/router/router.tsx

21 lines
486 B
TypeScript
Raw Normal View History

2022-12-24 11:50:11 +08:00
import {createBrowserRouter, redirect} from "react-router-dom";
2022-12-23 23:00:44 +08:00
import LoginView from "../pages/Login/LoginView";
import HomeView from "../pages/HomeView";
2022-12-26 15:25:51 +08:00
import InvoiceListView from "../pages/Invoice/InvoiceListView";
2022-12-23 23:00:44 +08:00
const router = createBrowserRouter([
{
path: "/login",
element: <LoginView/>,
},
{
path: "/",
element: <HomeView/>,
},
2022-12-26 15:25:51 +08:00
{
path: "/list",
element: <InvoiceListView/>,
}
2022-12-23 23:00:44 +08:00
]);
2022-12-24 11:50:11 +08:00
2022-12-23 23:00:44 +08:00
export default router