From 9b6ba246d52e9a626014216f9da9010640d62c46 Mon Sep 17 00:00:00 2001
From: couriourc <3234853521@qq.com>
Date: Sun, 8 Sep 2024 16:43:54 +0800
Subject: [PATCH] chore: remove unused console
---
example/xxxServer/index.html | 12 ++++++++++--
index.ts | 1 -
2 files changed, 10 insertions(+), 3 deletions(-)
diff --git a/example/xxxServer/index.html b/example/xxxServer/index.html
index 4523e8b..5318461 100644
--- a/example/xxxServer/index.html
+++ b/example/xxxServer/index.html
@@ -10,10 +10,18 @@
diff --git a/index.ts b/index.ts
index 11234ca..40a386f 100644
--- a/index.ts
+++ b/index.ts
@@ -165,7 +165,6 @@ for await (const file of glob.scan(resolve(config.api_dir))) {
const finalUrl = urlRewrite(url, method,);
app[method]?.(finalUrl, async (req) => {
let res = Bun.file(resolve(path.join(config.api_dir, file)));
- console.log(req)
logger.debug(JSON.stringify(pick(req, ['cookie', 'user-agent', 'headers', 'body', 'route', 'query', 'content-type'])));
switch (path.extname(file)) {
case ".json":