init deno

This commit is contained in:
Ean Milligan
2026-04-07 02:00:56 -04:00
parent ebdd81ee5e
commit 27d6e71b00
4 changed files with 170 additions and 0 deletions

13
mod.ts Normal file
View File

@@ -0,0 +1,13 @@
import { STATUS_CODE, STATUS_TEXT, StatusCode } from '@std/http';
import config from '~config';
Deno.serve({ port: config.api.port }, async (req) => {
if (req.method === 'GET') {
// handle all gets
} else {
// handle auth then all other shiz
}
return new Response(STATUS_TEXT[STATUS_CODE.NotImplemented]);
});