12 lines
267 B
TypeScript
12 lines
267 B
TypeScript
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',
|
|
},
|
|
})
|
|
}
|