index.js 269 Bytes
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;