12 lines
330 B
TypeScript
12 lines
330 B
TypeScript
import { getCatalog } from "../../_lib";
|
|
|
|
export async function onRequestGet(): Promise<Response> {
|
|
return new Response(JSON.stringify(getCatalog()), {
|
|
headers: {
|
|
"Content-Type": "application/json",
|
|
"Access-Control-Allow-Origin": "*",
|
|
"Cache-Control": "no-cache, no-store, must-revalidate",
|
|
},
|
|
});
|
|
}
|