var studentsController = require('../controllers/students');
var teachersController = require('../controllers/teachers');
var authenticationController = require('../controllers/authenticate');

module.exports = function(app, express, io) {

  app.get('/login', authenticationController.login);
  app.get('/signup', authenticationController.signup);
  
  //app.get('/teachers/poll', teachersController.pollClass);
  //app.get('/teachers/thumbs', teachersController.thumbsCheck);
  
  app.get('/teachers/thumbs', teachersController.thumbsCheck.bind(this, io));
  // app.post('/teachers/poll', teachersController.pollClass);

  app.get('/teachers/lessons/:classId', teachersController.getLessons);
  app.get('/teachers/polls/:lessonId', teachersController.getPolls);

  app.post('/teachers/polls', teachersController.newPoll);

  //app.get('/classDismissed', teachersController.endClass);
  

  app.get('/students/ready', studentsController.readyStage.bind(this, io));
};
var studentsController = require('../controllers/students');
var teachersController = require('../controllers/teachers');
var authenticationController = require('../controllers/authenticate');

module.exports = function(app, io) {

  app.get('/login', authenticationController.login);
  app.get('/signup', authenticationController.signup);
  
  //app.get('/teachers/poll', teachersController.pollClass);
  //app.get('/teachers/thumbs', teachersController.thumbsCheck);
  
  app.get('/teachers/thumbs', teachersController.thumbsCheck(io));
  // app.post('/teachers/poll', teachersController.pollClass);

  app.get('/teachers/lessons/:classId', teachersController.getLessons);
  app.get('/teachers/polls/:lessonId', teachersController.getPolls);

  app.post('/teachers/polls', teachersController.newPoll);

  //app.get('/classDismissed', teachersController.endClass);
  

  app.get('/students/ready', studentsController.readyStage(io));
};
Remove express reference, send only app object
Remove express reference, send only app object
