var QuestionCtrl = require('../controllers/questionCtrl.js');

module.exports = function(express, app){
  var router = express.Router();

  router.post('/', QuestionCtrl.create);
  router.get('/', QuestionCtrl.get);

  router.put('/status', QuestionCtrl.set);

  app.use('/questions', router);
};

var QuestionCtrl = require('../controllers/questionCtrl.js');

module.exports = function(express, app) {
  var router = express.Router();

  router.post('/', QuestionCtrl.create);
  router.get('/', QuestionCtrl.get);

  router.post('/status', QuestionCtrl.set);

  app.use('/questions', router);
};

Use post over put for the status change api
Use post over put for the status change api
