14 lines
329 B
TypeScript
14 lines
329 B
TypeScript
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]);
|
|
});
|