mirror of
https://github.com/shishantbiswas/bknd.git
synced 2026-03-17 12:56:05 +00:00
public commit
This commit is contained in:
25
app/src/ui/routes/data/index.tsx
Normal file
25
app/src/ui/routes/data/index.tsx
Normal file
@@ -0,0 +1,25 @@
|
||||
import { Route, Switch } from "wouter";
|
||||
import { DataEmpty, DataRoot } from "./_data.root";
|
||||
import { DataEntityUpdate } from "./data.$entity.$id";
|
||||
import { DataEntityCreate } from "./data.$entity.create";
|
||||
import { DataEntityList } from "./data.$entity.index";
|
||||
import { DataSchemaEntity } from "./data.schema.$entity";
|
||||
import { DataSchemaIndex } from "./data.schema.index";
|
||||
|
||||
export default function DataRoutes() {
|
||||
return (
|
||||
<DataRoot>
|
||||
<Switch>
|
||||
<Route path="/" component={DataEmpty} />
|
||||
<Route path="/entity/:entity" component={DataEntityList} />
|
||||
<Route path="/entity/:entity/create" component={DataEntityCreate} />
|
||||
<Route path="/entity/:entity/edit/:id" component={DataEntityUpdate} />
|
||||
|
||||
<Route path="/schema" nest>
|
||||
<Route path="/" component={DataSchemaIndex} />
|
||||
<Route path="/entity/:entity" component={DataSchemaEntity} />
|
||||
</Route>
|
||||
</Switch>
|
||||
</DataRoot>
|
||||
);
|
||||
}
|
||||
Reference in New Issue
Block a user