text: const controllers = require('./controllers');
  const mid = require('./middleware');
  
  const router = (app) => {
    // Now we can access what we need from the app
    app.get('/getToken', mid.requiresSecure, controllers.Account.getToken);
    app.get('/getDomos', mid.requiresSecure, controllers.Domo.getDomos);
    app.get('/login', mid.requiresSecure, mid.requiresLogout, controllers.Account.loginPage);
    app.post('/login', mid.requiresSecure, mid.requiresLogout, controllers.Account.login);
    app.post('/signup', mid.requiresSecure, mid.requiresLogout, controllers.Account.signup);
    app.get('/logout', mid.requiresLogin, controllers.Account.logout);
    app.get('/maker', mid.requiresLogin, controllers.Domo.makerPage);
    app.post('/maker', mid.requiresLogin, controllers.Domo.make);
    app.delete('/delDomo', mid.requiresLogin, controllers.Domo.deleteDomo);
    app.get('/', mid.requiresSecure, mid.requiresLogout, controllers.Account.loginPage);
  };
  
  module.exports = router;
  