diff options
| author | 2026-03-26 09:23:07 +0800 | |
|---|---|---|
| committer | 2026-03-26 09:23:07 +0800 | |
| commit | f8b4bcb3bdc8f11323103081ef8c05b06159d684 (patch) | |
| tree | e86c8d46e73262c67c1755aaf4202cbcd1f8f844 /packages/docs/app/routes.ts | |
| parent | 1812ca8974aee347b61bd415c1e2b63a205137dd (diff) | |
| parent | 94b0d8e208363c802c12b56d8bdbef574dd1fb91 (diff) | |
| download | DropOut-f8b4bcb3bdc8f11323103081ef8c05b06159d684.tar.gz DropOut-f8b4bcb3bdc8f11323103081ef8c05b06159d684.zip | |
Merge branch 'main' of https://github.com/HydroRoll-Team/DropOut
Diffstat (limited to 'packages/docs/app/routes.ts')
| -rw-r--r-- | packages/docs/app/routes.ts | 12 |
1 files changed, 6 insertions, 6 deletions
diff --git a/packages/docs/app/routes.ts b/packages/docs/app/routes.ts index 2997ecf..d12d93c 100644 --- a/packages/docs/app/routes.ts +++ b/packages/docs/app/routes.ts @@ -1,16 +1,16 @@ -import { route, type RouteConfig } from '@react-router/dev/routes'; +import { type RouteConfig, route } from "@react-router/dev/routes"; export default [ // Home routes: / and /:lang - route(':lang?', 'routes/home.tsx', { id: 'home' }), + route(":lang?", "routes/home.tsx", { id: "home" }), // Docs routes: /docs/* and /:lang/docs/* - route(':lang?/docs', 'routes/docs.tsx', { id: 'docs' }), - route(':lang?/docs/*', 'docs/page.tsx', { id: 'docs-page' }), + route(":lang?/docs", "routes/docs.tsx", { id: "docs" }), + route(":lang?/docs/*", "docs/page.tsx", { id: "docs-page" }), // API routes - route('api/search', 'docs/search.ts', { id: 'api-search' }), + route("api/search", "docs/search.ts", { id: "api-search" }), // Catch-all 404 - route('*', 'routes/not-found.tsx', { id: 'not-found' }), + route("*", "routes/not-found.tsx", { id: "not-found" }), ] satisfies RouteConfig; |