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

Function get

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

Source from the content-addressed store, hash-verified

4module.exports = {
5 list: {
6 async get(req, res) {
7 let s = db('share').filter({ adminId: req.info.userInfo.id }).value()
8 res.return(s)
9 },
10 async put(req, res) {
11 req.body.adminId = req.info.userInfo.id
12 req.body.time = new Date()

Callers

nothing calls this directly

Calls 3

nodeMethod · 0.80
fileInfoMethod · 0.80
listMethod · 0.80

Tested by

no test coverage detected