update heatmap.png
This commit is contained in:
parent
9b93f6c802
commit
18c5d2a23c
|
@ -6,11 +6,14 @@ import {
|
||||||
|
|
||||||
export const heatmapPng = async (requestEvent: Deno.RequestEvent) => {
|
export const heatmapPng = async (requestEvent: Deno.RequestEvent) => {
|
||||||
const file = Deno.readFileSync('./src/endpoints/gets/heatmap.png');
|
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
|
// Send basic OK to indicate key has been sent
|
||||||
requestEvent.respondWith(
|
requestEvent.respondWith(
|
||||||
new Response(file, {
|
new Response(file, {
|
||||||
status: Status.OK,
|
status: Status.OK,
|
||||||
statusText: STATUS_TEXT[Status.OK],
|
statusText: STATUS_TEXT[Status.OK],
|
||||||
|
headers: imageHeaders,
|
||||||
}),
|
}),
|
||||||
);
|
);
|
||||||
};
|
};
|
||||||
|
|
Loading…
Reference in New Issue