summaryrefslogtreecommitdiff
path: root/app/routes.ts
diff options
context:
space:
mode:
authoryyamashita <yyamashita@mosquit.one>2026-05-15 00:22:37 +0900
committeryyamashita <yyamashita@mosquit.one>2026-05-15 00:22:37 +0900
commit4ab34c8f0f9b4e1f636a26012f2a75863b471c51 (patch)
treeafae0d4cf96657d5c55a1d576e365f4d6b177c46 /app/routes.ts
parenteb02f582324aa9b57d287a7b5b809974f4954f98 (diff)
Fix build: merge detail/update into existing API routes
Parametric resource routes cause a React Router prod build error (commonjs--resolver server-only module conflict). Merged the GET?id= and PATCH logic into the existing api-bands.tsx and api-artists.tsx instead of creating separate :uuid route files. - GET /api/bands?id=UUID → band detail with links/members - PATCH /api/bands → partial update (append_links, append_members) - Same pattern for /api/artists Co-Authored-By: Claude Sonnet 4.6 <noreply@anthropic.com>
Diffstat (limited to 'app/routes.ts')
-rw-r--r--app/routes.ts2
1 files changed, 0 insertions, 2 deletions
diff --git a/app/routes.ts b/app/routes.ts
index 518492f..0a2c028 100644
--- a/app/routes.ts
+++ b/app/routes.ts
@@ -3,9 +3,7 @@ import { type RouteConfig, index, route } from "@react-router/dev/routes";
export default [
index("routes/home.tsx"),
route("/api/bands", "routes/api-bands.tsx"),
- route("/api/bands/:uuid", "routes/api-band-detail.tsx"),
route("/api/artists", "routes/api-artists.tsx"),
- route("/api/artists/:uuid", "routes/api-artist-detail.tsx"),
route("/api/export", "routes/api-export.tsx"),
route("/api/import", "routes/api-import.tsx"),
route("/bands", "routes/band-index.tsx"),