Implements basic file based router
This commit is contained in:
4
util/response.ts
Executable file
4
util/response.ts
Executable 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 });
|
Reference in New Issue
Block a user