Skip to content

Commit 7d9ea5b

Browse files
committed
fix(webapp): export the builder loader from converted API routes
createActionApiRoute's loader handles CORS OPTIONS preflight; the destructured exports never surfaced it (pre-existing), do it now.
1 parent 5a4d562 commit 7d9ea5b

4 files changed

Lines changed: 8 additions & 0 deletions

apps/webapp/app/routes/api.v1.idempotencyKeys.$key.reset.ts

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -52,3 +52,5 @@ const route = createActionApiRoute(
5252
);
5353

5454
export const action = route.action;
55+
// The builder's loader handles CORS OPTIONS preflight
56+
export const loader = route.loader;

apps/webapp/app/routes/api.v1.queues.$queueParam.concurrency.override.ts

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -75,3 +75,5 @@ const route = createActionApiRoute(
7575
);
7676

7777
export const action = route.action;
78+
// The builder's loader handles CORS OPTIONS preflight
79+
export const loader = route.loader;

apps/webapp/app/routes/api.v1.queues.$queueParam.concurrency.reset.ts

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -75,3 +75,5 @@ const route = createActionApiRoute(
7575
);
7676

7777
export const action = route.action;
78+
// The builder's loader handles CORS OPTIONS preflight
79+
export const loader = route.loader;

apps/webapp/app/routes/api.v1.queues.$queueParam.pause.ts

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -46,3 +46,5 @@ const route = createActionApiRoute(
4646
);
4747

4848
export const action = route.action;
49+
// The builder's loader handles CORS OPTIONS preflight
50+
export const loader = route.loader;

0 commit comments

Comments
 (0)