15 lines
339 B
TypeScript
15 lines
339 B
TypeScript
|
import {createBrowserRouter} from "react-router-dom";
|
||
|
import LoginView from "../pages/Login/LoginView";
|
||
|
import HomeView from "../pages/HomeView";
|
||
|
|
||
|
const router = createBrowserRouter([
|
||
|
{
|
||
|
path: "/login",
|
||
|
element: <LoginView/>,
|
||
|
},
|
||
|
{
|
||
|
path: "/",
|
||
|
element: <HomeView/>,
|
||
|
},
|
||
|
]);
|
||
|
export default router
|