MCPcopy
hub / github.com/eggjs/egg / getBar

Method getBar

test/fixtures/apps/app-ts/app/controller/foo.ts:56–62  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

54 }
55
56 async getBar() {
57 try {
58 this.ctx.body = await this.service.foo.bar();
59 } catch (e) {
60 this.ctx.logger.error(e);
61 }
62 }
63
64 async requestWithHttpclientNext(request: RequestOptionsNext) {
65 let result = await this.app.curl('url', request);

Callers

nothing calls this directly

Calls 2

errorMethod · 0.80
barMethod · 0.65

Tested by

no test coverage detected