From c0ac85ee7c25fa3333497450e36e9ea6788c80e0 Mon Sep 17 00:00:00 2001 From: GitHub Copilot Date: Wed, 23 Apr 2025 21:29:41 -0400 Subject: [PATCH] #1 Implement GET /api/accounts endpoint --- src/pages/api/accounts/index.ts | 11 +++++++++++ 1 file changed, 11 insertions(+) diff --git a/src/pages/api/accounts/index.ts b/src/pages/api/accounts/index.ts index e69de29..471d4e6 100644 --- a/src/pages/api/accounts/index.ts +++ b/src/pages/api/accounts/index.ts @@ -0,0 +1,11 @@ +import type { APIRoute } from 'astro'; +import { accounts } from '../../../data/store'; + +export const GET: APIRoute = async () => { + return new Response(JSON.stringify(accounts), { + status: 200, + headers: { + 'Content-Type': 'application/json' + } + }); +}; \ No newline at end of file