MCPcopy Create free account
hub / github.com/badyun/AShare / post

Function post

controller/share.js:24–27  ·  view source on GitHub ↗
(req, res)

Source from the content-addressed store, hash-verified

22 res.return('请至我的分享查看')
23 },
24 async post(req, res) {
25 db('share').find({ adminId: req.info.userInfo.id, id: req.body.id }).assign(req.body).write()
26 res.return('操作成功')
27 },
28 async delete(req, res) {
29 db('share').remove({ adminId: req.info.userInfo.id, id: req.body.id }).write()
30 res.return('删除成功')

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected