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

16 lines
350 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";
const router = createBrowserRouter([
{
path: "/login",
element: <LoginView/>,
},
{
path: "/",
element: <HomeView/>,
},
]);
2022-12-24 11:50:11 +08:00
2022-12-23 23:00:44 +08:00
export default router