diff options
Diffstat (limited to 'examples/container-with-vitest/src/pages/api.ts')
-rw-r--r-- | examples/container-with-vitest/src/pages/api.ts | 11 |
1 files changed, 11 insertions, 0 deletions
diff --git a/examples/container-with-vitest/src/pages/api.ts b/examples/container-with-vitest/src/pages/api.ts new file mode 100644 index 000000000..c30def5bb --- /dev/null +++ b/examples/container-with-vitest/src/pages/api.ts @@ -0,0 +1,11 @@ +export function GET() { + const json = { + foo: 'bar', + number: 1, + }; + return new Response(JSON.stringify(json), { + headers: { + 'content-type': 'application/json', + }, + }); +} |