'use strict';

//var FileUpload = require(process.cwd() + '/app/controllers/fileUpload.server.js');

module.exports = function (app) {
  
  //var fileUpload = new FileUpload();
  
  app.route('/')
      .get(function (req, res) {
          res.sendFile(process.cwd() + '/public/index.html');
      });

  //app.route('/upload')
  //    .post(fileUpload.getInfo);

};

'use strict';

//var FileUpload = require(process.cwd() + '/app/controllers/fileUpload.server.js');

module.exports = function (app) {
  
  //var fileUpload = new FileUpload();
  
  app.route('/')
    .get(function (req, res) {
      res.sendFile(process.cwd() + '/public/index.html');
    });
      
  app.get('/login/twitter',
    passport.authenticate('twitter'));

  app.get('/login/twitter/return', 
    passport.authenticate('twitter', { failureRedirect: '/' }),
    function(req, res) {
      res.redirect('/');
    });
  
  //app.route('/upload')
  //    .post(fileUpload.getInfo);

};

Add routes to login with Passport
Add routes to login with Passport
