How to use the username function from koa-body
Find comprehensive JavaScript koa-body.username code examples handpicked from public code repositorys.
GitHub: SvenShi/sven_ninja
59 60 61 62 63 64 65 66 67 68 69
}); router.post('/api/update', body(), async (ctx) => { const body = ctx.request.body; const eid = body.eid; const username = body.username; const ck = body.ck; ctx.body = await new User({eid, ck, username}).update(); });
11
15
0
+ 2 other calls in file
koa-body.eid is the most popular function in koa-body (111 examples)