index.js 250 Bytes Raw Blame History Permalink 1 2 3 4 5 6 7 8 9 10 const Router = require('koa-router'); const authCtrl = require('./auth.ctrl'); const auth = new Router(); auth.post('/register', authCtrl.register); auth.post('/login', authCtrl.login); auth.post('/logout', authCtrl.logout); module.exports = auth;