MCPcopy Create free account
hub / github.com/coderwhy/coderhub / create

Method create

src/controller/label.controller.js:4–8  ·  view source on GitHub ↗
(ctx, next)

Source from the content-addressed store, hash-verified

2
3class LabelController {
4 async create(ctx, next) {
5 const { name } = ctx.request.body;
6 const result = await service.create(name);
7 ctx.body = result;
8 }
9
10 async list(ctx, next) {
11 const { limit, offset } = ctx.query;

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected