text: const controllers = require('./controllers');
  const mid = require('./middleware');
  
  const router = (app) =>{
      app.get('/getToken', mid.requiresSecure, controllers.Account.getToken);
      app.get('/getDomos', mid.requiresLogin, 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.get('/', mid.requiresSecure, mid.requiresLogout, controllers.Account.loginPage);
      app.delete('/delete', mid.requiresLogin, controllers.Domo.deleteDomo);
  };
  
  module.exports = router;