session.ctrl.js 292 Bytes Raw Blame History Permalink 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 /* POST /api/session/createproblem/:how { problemList:[Number] } */ exports.createProblem = async (ctx)=>{ try{ const how=ctx.params.how; if(how==='self'){ } else if(how==='recommend'){ } } catch(e){ ctx.throw(500,e); } };