File size: 684 Bytes
8fe4e41
 
 
 
 
 
 
4d9392e
8fe4e41
4d9392e
 
 
 
 
 
 
 
 
 
8fe4e41
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
import { StrictMode } from "react";
import { createRoot } from "react-dom/client";
import "@xyflow/react/dist/style.css";
import "./index.css";
import { BrowserRouter, Route, Routes } from "react-router";
import Directory from "./Directory.tsx";
import Workspace from "./workspace/Workspace.tsx";

createRoot(document.getElementById("root")!).render(
  <StrictMode>
    <BrowserRouter>
      <Routes>
        <Route path="/" element={<Directory />} />
        <Route path="/dir" element={<Directory />} />
        <Route path="/dir/:path" element={<Directory />} />
        <Route path="/edit/:path" element={<Workspace />} />
      </Routes>
    </BrowserRouter>
  </StrictMode>,
);