closer
This commit is contained in:
@@ -10,7 +10,9 @@ const app = new Elysia()
|
||||
.onRequest(({ request }) => {
|
||||
console.log(request.method, request.url);
|
||||
})
|
||||
.onError(({ code, error }) => {
|
||||
.onError(({ code, error, body, headers }) => {
|
||||
console.error("headers", JSON.stringify(headers, null, 2));
|
||||
console.error("body", JSON.stringify(body, null, 2));
|
||||
console.error(code, error);
|
||||
})
|
||||
.get("/ping", () => "pong")
|
||||
|
||||
Reference in New Issue
Block a user