aboutsummaryrefslogtreecommitdiff
path: root/packages/integrations/node/test/fixtures/locals/src/pages/api.js
diff options
context:
space:
mode:
Diffstat (limited to 'packages/integrations/node/test/fixtures/locals/src/pages/api.js')
-rw-r--r--packages/integrations/node/test/fixtures/locals/src/pages/api.js10
1 files changed, 10 insertions, 0 deletions
diff --git a/packages/integrations/node/test/fixtures/locals/src/pages/api.js b/packages/integrations/node/test/fixtures/locals/src/pages/api.js
new file mode 100644
index 000000000..3c279e37b
--- /dev/null
+++ b/packages/integrations/node/test/fixtures/locals/src/pages/api.js
@@ -0,0 +1,10 @@
+
+export async function POST({ locals }) {
+ const out = { ...locals };
+
+ return new Response(JSON.stringify(out), {
+ headers: {
+ 'Content-Type': 'application/json'
+ }
+ });
+}