Added Ts.ED
This commit is contained in:
21
frontend/src/routes/index.tsx
Normal file
21
frontend/src/routes/index.tsx
Normal file
@@ -0,0 +1,21 @@
|
||||
import { Route, Routes } from "@solidjs/router";
|
||||
import { Component, lazy } from "solid-js";
|
||||
|
||||
const Home = lazy(() => import("./views/home/Home"));
|
||||
const AuthLayout = lazy(() => import("./views/auth/AuthLayout"));
|
||||
const Login = lazy(() => import("./views/auth/Login"));
|
||||
const Register = lazy(() => import("./views/auth/Register"));
|
||||
|
||||
const AppRouter: Component = () => {
|
||||
return (
|
||||
<Routes>
|
||||
<Route path="/" element={<Home />}></Route>
|
||||
<Route path="/auth" element={<AuthLayout />}>
|
||||
<Route path="/login" element={<Login />}></Route>
|
||||
<Route path="/register" element={<Register />}></Route>
|
||||
</Route>
|
||||
</Routes>
|
||||
);
|
||||
};
|
||||
|
||||
export default AppRouter;
|
||||
Reference in New Issue
Block a user