code editor page

This commit is contained in:
Anton Kupriianov 2025-04-17 10:10:04 -07:00
parent ef85ff6d24
commit 29694fd201
7 changed files with 565 additions and 0 deletions

View file

@ -9,6 +9,7 @@ import ProtectedRoute from "../components/ProtectedRoute";
// Pages
import HomePage from "../pages/HomePage";
import LoginPage from "../pages/LoginPage";
import PageCodeEditor from "../pages/CodeEditor";
import PageNotFound from "../pages/PageNotFound";
const AppRouter = () => {
@ -26,6 +27,14 @@ const AppRouter = () => {
</ProtectedRoute>
}
/>
<Route
path="/editor"
element={
<ProtectedRoute>
<PageCodeEditor />
</ProtectedRoute>
}
/>
<Route path="*" element={<PageNotFound />} />
</Routes>
<Footer />