MCPcopy
hub / github.com/eggjs/examples / render

Method render

helloworld/app/controller/foo.ts:4–10  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

2
3export default class FooController extends Controller {
4 async render() {
5 const ctx = this.ctx;
6 ctx.status = 400;
7 ctx.body = {
8 foo: 'bar',
9 };
10 }
11}

Callers 10

listMethod · 0.45
detailMethod · 0.45
userMethod · 0.45
listMethod · 0.45
detailMethod · 0.45
userMethod · 0.45
listMethod · 0.45
listMethod · 0.45
detailMethod · 0.45
userMethod · 0.45

Calls

no outgoing calls

Tested by

no test coverage detected