How to use the remark function from koa-body

Find comprehensive JavaScript koa-body.remark code examples handpicked from public code repositorys.

96
97
98
99
100
101
102
103
104
105
106
});


router.post("/api/update/remark", body(), async (ctx) => {
  const body = ctx.request.body;
  const eid = body.eid;
  const remark = body.remark;
  const user = new User({ eid, remark });
  const data = await user.updateRemark();
  ctx.body = { data };
});
fork icon3
star icon4
watch icon0

+ 3 other calls in file