Implements basic file based router

This commit is contained in:
2025-01-02 16:06:55 -07:00
parent defd40293f
commit b73af68989
11 changed files with 464 additions and 72 deletions

4
util/response.ts Executable file
View File

@@ -0,0 +1,4 @@
export const NotFound = (msg?: string) =>
new Response(msg ?? "Not Found", { status: 404 });
export const InternalError = (msg?: string) =>
new Response(msg ?? "Internal Server Error", { status: 500 });