34
chenyc
2024-10-29 ed2ff23d1c95fcfa3077b4c82859a39755e8ea00
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