mirror of
https://github.com/mountain-loop/yaak.git
synced 2026-03-24 10:21:15 +01:00
Refactor editor to update better
This commit is contained in:
13
src-web/components/AppRouter.tsx
Normal file
13
src-web/components/AppRouter.tsx
Normal file
@@ -0,0 +1,13 @@
|
||||
import { Router } from 'preact-router';
|
||||
import { Workspaces } from '../pages/Workspaces';
|
||||
import { Workspace } from '../Workspace';
|
||||
|
||||
export function AppRouter() {
|
||||
return (
|
||||
<Router>
|
||||
<Workspaces path="/" />
|
||||
<Workspace path="/workspaces/:workspaceId" />
|
||||
<Workspace path="/workspaces/:workspaceId/requests/:requestId" />
|
||||
</Router>
|
||||
);
|
||||
}
|
||||
Reference in New Issue
Block a user