MCPcopy Create free account
hub / github.com/eggjs/examples / index

Method index

sequelize/app/controller/post.js:6–13  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

4
5class PostController extends Controller {
6 async index() {
7 const ctx = this.ctx;
8 const query = {
9 limit: ctx.helper.parseInt(ctx.query.limit),
10 offset: ctx.helper.parseInt(ctx.query.offset),
11 };
12 ctx.body = await ctx.service.post.list(query);
13 }
14
15 async show() {
16 const ctx = this.ctx;

Callers

nothing calls this directly

Calls 1

listMethod · 0.45

Tested by

no test coverage detected