index.js 224 Bytes
const Router = require('koa-router');
const hubCtrl = require('./hub.ctrl');

const hub = new Router();

hub.post('/connect', hubCtrl.hubConnect);
hub.post('/disconnect/:hubId', hubCtrl.hubDisconnect);

module.exports = hub;