MCPcopy
hub / github.com/lfb/nodejs-koa-blog / json

Method json

app/lib/helper.js:18–25  ·  view source on GitHub ↗
(data, msg = 'success', errorCode = 0, code = 200)

Source from the content-addressed store, hash-verified

16 }
17
18 json(data, msg = 'success', errorCode = 0, code = 200) {
19 return {
20 code,
21 msg,
22 errorCode,
23 data
24 }
25 }
26}
27
28module.exports = {

Callers 9

responseFunction · 0.80
mock-server.jsFile · 0.80
upload.jsFile · 0.80
admin.jsFile · 0.80
reply.jsFile · 0.80
category.jsFile · 0.80
user.jsFile · 0.80
comment.jsFile · 0.80
article.jsFile · 0.80

Calls

no outgoing calls

Tested by

no test coverage detected