initial commit
This commit is contained in:
18
web/src/templates/routes.tsx
Normal file
18
web/src/templates/routes.tsx
Normal file
@@ -0,0 +1,18 @@
|
||||
import { createRoute } from "@tanstack/react-router";
|
||||
import { rootRoute } from "@/root-route.tsx";
|
||||
import { TemplatesDashboard } from "@/templates/dashboard.tsx";
|
||||
import { TemplateEditor } from "@/templates/template-editor.tsx";
|
||||
|
||||
const templatesDashboardRoute = createRoute({
|
||||
getParentRoute: () => rootRoute,
|
||||
path: "/templates",
|
||||
component: TemplatesDashboard,
|
||||
});
|
||||
|
||||
const templateEditorRoute = createRoute({
|
||||
getParentRoute: () => rootRoute,
|
||||
path: "/templates/$templateName/$",
|
||||
component: TemplateEditor,
|
||||
});
|
||||
|
||||
export { templatesDashboardRoute, templateEditorRoute };
|
Reference in New Issue
Block a user