Files
aimighty-market/functions/api/v2/catalog.ts
T

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",
},
});
}