7 lines · 261 bytes
1 symbol in this file
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 });