Skip to content

Commit

Permalink
Fix r2 namespace routes
Browse files Browse the repository at this point in the history
  • Loading branch information
chadokruse committed Nov 15, 2024
1 parent 0ce9717 commit 3a23dc8
Show file tree
Hide file tree
Showing 2 changed files with 7 additions and 2 deletions.
4 changes: 2 additions & 2 deletions apps/api/src/router.ts
Original file line number Diff line number Diff line change
Expand Up @@ -29,7 +29,7 @@ router

// Validate EIN
if (isValidEin(ein)) {
return fetchR2Object(env, key, namespace);
return fetchR2Object(env, namespace, key);
}

return new Response('Invalid EIN format', { status: 400 });
Expand All @@ -45,7 +45,7 @@ router

// Validate EIN
if (isValidEin(ein)) {
return fetchR2Object(env, key, namespace);
return fetchR2Object(env, namespace, key);
}

return new Response('Invalid EIN format', { status: 400 });
Expand Down
5 changes: 5 additions & 0 deletions turbo.json
Original file line number Diff line number Diff line change
Expand Up @@ -16,6 +16,11 @@
"dev": {
"cache": false,
"persistent": true
},
"preview": {
"dependsOn": ["^preview"],
"cache": false,
"persistent": true
}
}
}

0 comments on commit 3a23dc8

Please sign in to comment.