Download code/frontend/apps/web/src/router.tsx from Jiali9/Affect-Atlas: direct link, hf CLI and curl.
- Browser
- Download file 457 Bytes
-
https://huggingface.co/Jiali9/Affect-Atlas/resolve/main/code/frontend/apps/web/src/router.tsx
- Command line
-
hf download hf://Jiali9/Affect-Atlas/code/frontend/apps/web/src/router.tsx
-
curl -L -o router.tsx https://huggingface.co/Jiali9/Affect-Atlas/resolve/main/code/frontend/apps/web/src/router.tsx
457 Bytes
| import { createRouter as createTanStackRouter } from "@tanstack/react-router" | |
| import { routeTree } from "./routeTree.gen" | |
| export function getRouter() { | |
| const router = createTanStackRouter({ | |
| routeTree, | |
| scrollRestoration: true, | |
| defaultPreload: "intent", | |
| defaultPreloadStaleTime: 0, | |
| }) | |
| return router | |
| } | |
| declare module "@tanstack/react-router" { | |
| interface Register { | |
| router: ReturnType<typeof getRouter> | |
| } | |
| } | |