diff options
| author | yyamashita <yyamashita@mosquit.one> | 2026-05-14 23:46:41 +0900 |
|---|---|---|
| committer | yyamashita <yyamashita@mosquit.one> | 2026-05-14 23:46:41 +0900 |
| commit | ad7bf60a3ed79b7e1c1d0aba8c4fb5d261b33116 (patch) | |
| tree | 1d4b20dbac991cab6a49ae875dddbd922c84698a /app/routes/api-bands.tsx | |
| parent | e5b28455523a371cda2e9173b445110b5dfbea24 (diff) | |
Fix API routes to return JSON as resource routes
Removing default component export makes these resource routes,
so React Router returns the Response directly instead of wrapping in HTML SSR.
Co-Authored-By: Claude Sonnet 4.6 <noreply@anthropic.com>
Diffstat (limited to 'app/routes/api-bands.tsx')
| -rw-r--r-- | app/routes/api-bands.tsx | 3 |
1 files changed, 0 insertions, 3 deletions
diff --git a/app/routes/api-bands.tsx b/app/routes/api-bands.tsx index 68efdeb..1bcaae2 100644 --- a/app/routes/api-bands.tsx +++ b/app/routes/api-bands.tsx @@ -46,6 +46,3 @@ export async function action({ request }: ActionFunctionArgs) { } } -export default function () { - return null; -} |
