Support Next.js template & template hub (#241)
This commit is contained in:
9
src/routes/hub.ts
Normal file
9
src/routes/hub.ts
Normal file
@@ -0,0 +1,9 @@
|
||||
import { Route } from "@tanstack/react-router";
|
||||
import HubPage from "../pages/hub"; // Assuming HubPage is in src/pages/hub.tsx
|
||||
import { rootRoute } from "./root"; // Assuming rootRoute is defined in src/routes/root.ts
|
||||
|
||||
export const hubRoute = new Route({
|
||||
getParentRoute: () => rootRoute,
|
||||
path: "/hub",
|
||||
component: HubPage,
|
||||
});
|
||||
Reference in New Issue
Block a user