text: 'use strict';
  
  /**
   * Module dependencies.
   */
  var passport = require('passport');
  
  module.exports = function(app) {
  	// User Routes
  	var users = require('../controllers/users.server.controller');
  
  	// Setting up the users profile api
  	app.route('/api/users/me').get(users.me);
  	app.route('/api/users')
  		.get(users.requiresLogin, users.index);
  	app.route('/api/users/:userId')
  		.put(users.update)
  		.delete(users.delete);
  	app.route('/api/users/accounts').delete(users.removeOAuthProvider);
  	app.route('/api/users/password').post(users.changePassword);
  	app.route('/api/users/picture').post(users.changeProfilePicture);
  
  	// Finish by binding the user middleware
  	app.param('userId', users.userByID);
  };
  