import type { APIRoute } from 'astro'

import database from '@/data/domande-esami.yaml'

export const GET: APIRoute = ({}) => {
    return new Response(JSON.stringify(database), {
        headers: {
            'content-type': 'application/json',
        },
    })
}
