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

Method create

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

Source from the content-addressed store, hash-verified

2
3class CommentController {
4 async create(ctx, next) {
5 const { momentId, content } = ctx.request.body;
6 const { id } = ctx.user;
7 const result = await service.create(momentId, content, id);
8 ctx.body = result;
9 }
10
11 async reply(ctx, next) {
12 const { momentId, content } = ctx.request.body;

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected