Commit 3df356ab authored by wty's avatar wty

新增接口获取埋点数据

parent f4818142
...@@ -22,6 +22,21 @@ router.get('/addMd', async (req, res) => { ...@@ -22,6 +22,21 @@ router.get('/addMd', async (req, res) => {
console.error(e) console.error(e)
res.send({success: false, err: e}) res.send({success: false, err: e})
} }
})
router.get('/queryAllMd', async (req, res) => {
const SQL = 'SELECT * FROM md'
try {
const mdInfo = await query(SQL,[])
res.send({
success: true,
data: mdInfo
})
}catch (e){
console.error(e)
res.send({success: false, err: e})
}
}) })
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment