mirror of
https://github.com/Burn-E99/TheArtificer.git
synced 2026-06-04 09:03:50 -04:00
Continued work on heatmap
This commit is contained in:
@@ -3,6 +3,7 @@ import { apiKey } from './gets/apiKey.ts';
|
||||
import { apiRoll } from './gets/apiRoll.ts';
|
||||
import { apiKeyAdmin } from './gets/apiKeyAdmin.ts';
|
||||
import { apiChannel } from './gets/apiChannel.ts';
|
||||
import { heatmapPng } from './gets/heatmapPng.ts';
|
||||
import { apiChannelAdd } from './posts/apiChannelAdd.ts';
|
||||
import { apiKeyManage } from './puts/apiKeyManage.ts';
|
||||
import { apiChannelManageBan } from './puts/apiChannelManageBan.ts';
|
||||
@@ -17,6 +18,7 @@ export default {
|
||||
apiRoll,
|
||||
apiKeyAdmin,
|
||||
apiChannel,
|
||||
heatmapPng,
|
||||
},
|
||||
post: {
|
||||
apiChannelAdd,
|
||||
|
||||
BIN
src/endpoints/gets/heatmap-base.png
Normal file
BIN
src/endpoints/gets/heatmap-base.png
Normal file
Binary file not shown.
|
After Width: | Height: | Size: 57 KiB |
16
src/endpoints/gets/heatmapPng.ts
Normal file
16
src/endpoints/gets/heatmapPng.ts
Normal file
@@ -0,0 +1,16 @@
|
||||
import {
|
||||
// httpd deps
|
||||
Status,
|
||||
STATUS_TEXT,
|
||||
} from '../../../deps.ts';
|
||||
|
||||
export const heatmapPng = async (requestEvent: Deno.RequestEvent) => {
|
||||
const file = Deno.readFileSync('./src/endpoints/gets/heatmap.png');
|
||||
// Send basic OK to indicate key has been sent
|
||||
requestEvent.respondWith(
|
||||
new Response(file, {
|
||||
status: Status.OK,
|
||||
statusText: STATUS_TEXT.get(Status.OK),
|
||||
}),
|
||||
);
|
||||
};
|
||||
Reference in New Issue
Block a user