16 lines
430 B
TypeScript
16 lines
430 B
TypeScript
export const runtime = 'nodejs';
|
|
|
|
const ONE_BY_ONE_PNG_BASE64 =
|
|
'iVBORw0KGgoAAAANSUhEUgAAAAEAAAABCAQAAAC1HAwCAAAAC0lEQVR42mP8/x8AAwMCAO0pS0kAAAAASUVORK5CYII=';
|
|
|
|
export async function GET(): Promise<Response> {
|
|
const body = Buffer.from(ONE_BY_ONE_PNG_BASE64, 'base64');
|
|
|
|
return new Response(body, {
|
|
status: 200,
|
|
headers: {
|
|
'content-type': 'image/png',
|
|
'cache-control': 'public, max-age=60',
|
|
},
|
|
});
|
|
} |