2024-08-28 09:33:00 +00:00
|
|
|
import { BrowserRouter, Routes, Route } from "react-router-dom";
|
|
|
|
import Home from "./components/Home";
|
2024-08-28 14:34:35 +00:00
|
|
|
import About from "./components/About";
|
|
|
|
import Contact from "./components/Contact";
|
2024-08-31 05:04:34 +00:00
|
|
|
import Register from "./components/Register";
|
2024-08-31 07:57:18 +00:00
|
|
|
import Login from "./components/Login";
|
2024-09-06 15:02:20 +00:00
|
|
|
import Dashboard from "./components/Dashboard";
|
|
|
|
import PrivateRoute from "./components/PrivateRoute";
|
2024-09-07 14:47:02 +00:00
|
|
|
import VerifyUser from "./components/EmailVerify";
|
2024-08-26 14:03:54 +00:00
|
|
|
|
2024-08-28 09:33:00 +00:00
|
|
|
const App = () => {
|
2024-08-26 14:03:54 +00:00
|
|
|
return (
|
2024-08-28 09:33:00 +00:00
|
|
|
<BrowserRouter>
|
|
|
|
<Routes>
|
|
|
|
<Route path="/" element={<Home />}></Route>
|
2024-08-28 14:34:35 +00:00
|
|
|
<Route path="/about" element={<About />}></Route>
|
|
|
|
<Route path="/contact" element={<Contact/>}></Route>
|
2024-08-31 05:04:34 +00:00
|
|
|
<Route path="/register" element={<Register/>}></Route>
|
2024-08-31 07:57:18 +00:00
|
|
|
<Route path="/login" element={<Login/>}></Route>
|
2024-09-06 15:02:20 +00:00
|
|
|
<Route
|
|
|
|
path="/dashboard"
|
|
|
|
element={
|
|
|
|
<PrivateRoute>
|
|
|
|
<Dashboard />
|
|
|
|
</PrivateRoute>
|
|
|
|
}
|
|
|
|
/>
|
2024-09-07 14:47:02 +00:00
|
|
|
<Route path="/users/:id/verify/:token" element={<VerifyUser />} />
|
2024-09-08 07:41:12 +00:00
|
|
|
|
2024-09-08 08:01:14 +00:00
|
|
|
|
2024-09-08 07:41:12 +00:00
|
|
|
|
2024-08-28 09:33:00 +00:00
|
|
|
</Routes>
|
|
|
|
</BrowserRouter>
|
2024-08-26 14:03:54 +00:00
|
|
|
)
|
|
|
|
}
|
|
|
|
|
2024-08-28 09:33:00 +00:00
|
|
|
export default App
|