Spaces:
Sleeping
Sleeping
Deploy Pathora Viewer: tile server, viewer components, and root app.py
#2
by
malavikapradeep2001 - opened
frontend/src/AppRouter.tsx
CHANGED
|
@@ -4,10 +4,13 @@ import { App } from "./App";
|
|
| 4 |
import { PathoraViewer } from "./components/viewer/PathoraViewer";
|
| 5 |
|
| 6 |
export function AppRouter() {
|
| 7 |
-
return
|
| 8 |
-
|
| 9 |
-
|
| 10 |
-
|
| 11 |
-
</
|
| 12 |
-
|
|
|
|
|
|
|
|
|
|
| 13 |
}
|
|
|
|
| 4 |
import { PathoraViewer } from "./components/viewer/PathoraViewer";
|
| 5 |
|
| 6 |
export function AppRouter() {
|
| 7 |
+
return (
|
| 8 |
+
<BrowserRouter>
|
| 9 |
+
<Routes>
|
| 10 |
+
<Route path="/" element={<PathoraViewer />} />
|
| 11 |
+
<Route path="/app" element={<App />} />
|
| 12 |
+
<Route path="/viewer" element={<PathoraViewer />} />
|
| 13 |
+
</Routes>
|
| 14 |
+
</BrowserRouter>
|
| 15 |
+
);
|
| 16 |
}
|