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