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

Function response

admin-blog/mock/mock-server.js:39–42  ·  view source on GitHub ↗
(req, res)

Source from the content-addressed store, hash-verified

37 url: new RegExp(`${process.env.VUE_APP_BASE_API}${url}`),
38 type: type || 'get',
39 response(req, res) {
40 console.log('request invoke:' + req.path)
41 res.json(Mock.mock(respond instanceof Function ? respond(req, res) : respond))
42 }
43 }
44}
45

Callers

nothing calls this directly

Calls 1

jsonMethod · 0.80

Tested by

no test coverage detected