34
chenyc
2024-10-29 ed2ff23d1c95fcfa3077b4c82859a39755e8ea00
34
2个文件已修改
14 ■■■■ 已修改文件
CHANGELOG.md 1 ●●●● 补丁 | 查看 | 原始文档 | blame | 历史
app.js 13 ●●●● 补丁 | 查看 | 原始文档 | blame | 历史
CHANGELOG.md
@@ -20,6 +20,7 @@
    "content": '' base64 图片格式
}
 
## 启动开发环境
"dev": "nodemon app.js",
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