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

Method destroy

sequelize/app/controller/user.js:34–39  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

32 }
33
34 async destroy() {
35 const ctx = this.ctx;
36 const id = ctx.helper.parseInt(ctx.params.id);
37 await ctx.service.user.del(id);
38 ctx.status = 200;
39 }
40}
41
42module.exports = UserController;

Callers

nothing calls this directly

Calls 1

delMethod · 0.45

Tested by

no test coverage detected