web/src/pages/api/line-numbers.json.ts

7 lines · 261 bytes

1 symbol in this file
  • GET const, line 4
1import type { APIRoute } from 'astro';
2import { fetchLineNumbers } from '@utils/fetch-line-numbers';
3
4export const GET: APIRoute = async () =>
5  new Response(JSON.stringify(await fetchLineNumbers()), {
6    headers: { 'content-type': 'application/json' },
7  });