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 +++----------
1 files changed, 3 insertions(+), 10 deletions(-)
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