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

Method list

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

Source from the content-addressed store, hash-verified

30 }
31
32 async list(ctx, next) {
33 const { momentId } = ctx.query;
34 const result = await service.getCommentsByMomentId(momentId);
35 ctx.body = result;
36 }
37}
38
39module.exports = new CommentController();

Callers

nothing calls this directly

Calls 1

getCommentsByMomentIdMethod · 0.80

Tested by

no test coverage detected