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