index.js 269 Bytes Raw Blame History Permalink 1 2 3 4 5 6 7 8 const Router = require('koa-router'); const challenge = new Router(); const challengeCtrl = require('./challege.ctrl'); challenge.post("/getchallenge",challengeCtrl.getChallenge); challenge.post("/addchallenge",challengeCtrl.addChallenge); module.exports = challenge;