MCPcopy Create free account
hub / github.com/bailicangdu/node-elm / getEntry

Method getEntry

controller/v2/entry.js:9–22  ·  view source on GitHub ↗
(req, res, next)

Source from the content-addressed store, hash-verified

7
8 }
9 async getEntry(req, res, next){
10 try{
11 const entries = await EntryModel.find({}, '-_id');
12 res.send(entries);
13 }catch(err){
14 console.log('获取数据失败');
15 res.send({
16 status: 0,
17 type: 'ERROR_DATA',
18 message: '获取数据失败'
19 })
20 return
21 }
22 }
23}
24
25export default new Entry()

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected