update heatmap.png

This commit is contained in:
Ean Milligan (Bastion) 2022-07-08 01:31:13 -04:00
parent 9b93f6c802
commit 18c5d2a23c
1 changed files with 3 additions and 0 deletions

View File

@ -6,11 +6,14 @@ import {
export const heatmapPng = async (requestEvent: Deno.RequestEvent) => {
const file = Deno.readFileSync('./src/endpoints/gets/heatmap.png');
const imageHeaders = new Headers();
imageHeaders.append('Content-Type', 'image/png');
// Send basic OK to indicate key has been sent
requestEvent.respondWith(
new Response(file, {
status: Status.OK,
statusText: STATUS_TEXT[Status.OK],
headers: imageHeaders,
}),
);
};