Connect to login endpoint

This commit is contained in:
1ilit
2024-01-07 05:10:34 +02:00
parent 679a58a9a3
commit fa1ea7a9d4
6 changed files with 101 additions and 28 deletions

View File

@@ -1,27 +1,30 @@
import { BrowserRouter as Router, Routes, Route } from "react-router-dom";
import Editor from "./pages/Editor";
import LandingPage from "./pages/LandingPage";
import Survey from "./pages/Survey";
import BugReport from "./pages/BugReport";
import SignUp from "./pages/Signup";
import Shortcuts from "./pages/Shortcuts"
import Shortcuts from "./pages/Shortcuts";
import Login from "./pages/Login";
import Templates from "./pages/Templates";
import Home from "./pages/Home";
import { CookiesProvider } from "react-cookie";
function App() {
return (
<Router>
<Routes>
<Route path="/" element={<LandingPage />} />
<Route path="/editor" element={<Editor />} />
<Route path="/survey" element={<Survey />} />
<Route path="/shortcuts" element={<Shortcuts />} />
<Route path="/bug_report" element={<BugReport />} />
<Route path="/signup" element={<SignUp />} />
<Route path="/login" element={<Login />} />
<Route path="/templates" element={<Templates />} />
</Routes>
</Router>
<CookiesProvider>
<Router>
<Routes>
<Route path="/" element={<Home />} />
<Route path="/editor" element={<Editor />} />
<Route path="/survey" element={<Survey />} />
<Route path="/shortcuts" element={<Shortcuts />} />
<Route path="/bug_report" element={<BugReport />} />
<Route path="/signup" element={<SignUp />} />
<Route path="/login" element={<Login />} />
<Route path="/templates" element={<Templates />} />
</Routes>
</Router>
</CookiesProvider>
);
}