text: 'use strict';
  
  module.exports = function(app) {
  	var users = require('../../app/controllers/users.server.controller');
  	var quiz = require('../../app/controllers/quiz.server.controller');
  	//var questions = require('../../app/controllers/questions.server.controller');
  
  	//Quiz route
  	//
  	app.route('/quiz')
  	  .get(quiz.grabQuestion)
  		.put(users.requiresLogin, quiz.answerQuestion);
  
  	app.route('/quiz/:questionId').get(quiz.read);
  
  	// Finish by binding the Question middleware
  
  	app.param('questionId', quiz.answeredQuestionById);
  };
  