mirror of
https://github.com/ProjectSegfault/website.git
synced 2025-05-31 14:12:04 +05:30
12 lines
285 B
TypeScript
12 lines
285 B
TypeScript
import type { RequestHandler } from './$types';
|
|
import map from "$lib/map";
|
|
|
|
export const GET = (() => {
|
|
const data = map.get("data");
|
|
|
|
return new Response(JSON.stringify(data), {
|
|
headers: {
|
|
"content-type": "application/json; charset=utf-8"
|
|
}
|
|
});
|
|
}) satisfies RequestHandler; |