| | |
| | | const bodyParser = require('body-parser'); |
| | | const mysql = require('mysql2'); |
| | | const fs = require('fs').promises; |
| | | const fs2=require('fs') |
| | | const path = require('path'); |
| | | const moment = require('moment') |
| | | // 转成能识别的url |
| | |
| | | config.endpoint = `facebody.cn-shanghai.aliyuncs.com`; |
| | | return new facebody20191230.default(config); |
| | | } |
| | | app.get('/',async(req,res)=>{ |
| | | res.send('设备交换患者信息333'); |
| | | }) |
| | | app.get('/', (req, res) => { |
| | | res.send('<h1>Hello World!</h1>'); |
| | | }); |
| | | // 定义 /webuser 路由处理器 用患者code 换信息 |
| | | app.post('/webuser', async (req, res) => { |
| | | const mode=req.body |