'use strict';

var lunchVote = require('../controllers/lunchVote');

// The Package is past automatically as first parameter
module.exports = function(LunchVote, app, auth, database) {

  app.get('/lunchVote/example/anyone', function(req, res, next) {
    res.send('Anyone can access this');
  });

  app.get('/lunchVote/example/auth', auth.requiresLogin, function(req, res, next) {
    res.send('Only authenticated users can access this');
  });

  app.get('/lunchVote/example/admin', auth.requiresAdmin, function(req, res, next) {
    res.send('Only users with Admin role can access this');
  });

  app.get('/lunchVote/example/render', function(req, res, next) {
    LunchVote.render('index', {
      package: 'lunch-vote'
    }, function(err, html) {
      //Rendering a view from the Package server/views
      res.send(html);
    });
  });


  app.route('/lunchVote/list').get(lunchVote.getList);

/*
  app.get('/lunchVote/list', function(req, res, next) {
    var list = ['apa'];
    res.send(list);
  });

*/

};

@@ -901,121 +901,7 @@
 );%0A%0A
-/*%0A  app.get('/lunchVote/list', function(req, res, next) %7B%0A    var list = %5B'apa'%5D;%0A    res.send(list);%0A  %7D);%0A%0A*/%0A%0A
 %7D;%0A

remove comment