From ed2ff23d1c95fcfa3077b4c82859a39755e8ea00 Mon Sep 17 00:00:00 2001
From: chenyc <501753378@qq.com>
Date: 星期二, 29 十月 2024 21:20:22 +0800
Subject: [PATCH] 34

---
 app.js       |   13 +++----------
 CHANGELOG.md |    1 +
 2 files changed, 4 insertions(+), 10 deletions(-)

diff --git a/CHANGELOG.md b/CHANGELOG.md
index d102128..a71f798 100644
--- a/CHANGELOG.md
+++ b/CHANGELOG.md
@@ -20,6 +20,7 @@
     "content": '' base64 图片格式
 
 }
+
  
 ## 启动开发环境
 "dev": "nodemon app.js",
diff --git a/app.js b/app.js
index 143f9dc..e82de23 100644
--- a/app.js
+++ b/app.js
@@ -46,16 +46,9 @@
     config.endpoint = `facebody.cn-shanghai.aliyuncs.com`;
     return new facebody20191230.default(config);
 }
-app.get('/',async(req,res)=>{
-    const filePath = path.join(__dirname, 'public', 'index.html');
-    fs2.readFile(filePath, 'utf8', (err, data) => {
-        if (err) {
-        res.status(500).send('Error reading file');
-        return;
-        }
-        res.send(data);
-    });
-})
+app.get('/', (req, res) => {
+    res.send('<h1>Hello World!</h1>');
+  });
 // 定义 /webuser 路由处理器  用患者code 换信息
 app.post('/webuser', async (req, res) => {
     const mode=req.body

--
Gitblit v1.8.0