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

Method update

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

Source from the content-addressed store, hash-verified

34 }
35
36 async update(ctx, next) {
37 // 1.获取参数
38 const { momentId } = ctx.params;
39 const { content } = ctx.request.body;
40
41 // 2.修改内容
42 const result = await momentService.update(content, momentId);
43 ctx.body = result;
44 }
45
46 async remove(ctx, next) {
47 // 1.获取momentId

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected