'use strict';

var userCtrl    = require('../controllers/user.ctrl'),
    auth        = require('../auth');

module.exports = function(app, passport) {

  app.get('/', auth.isAuthenticated, userCtrl.dashboard);
  app.post('/signup', auth.checkUser, userCtrl.create);
  app.post('/login', passport.authenticate('login'), auth.authenticate);
  app.post('/update', auth.isAuthenticated, userCtrl.update);

};

@@ -158,16 +158,20 @@
 p.get('/
+api/
 ', auth.
@@ -221,16 +221,20 @@
 .post('/
+api/
 signup',
@@ -281,16 +281,20 @@
 .post('/
+api/
 login', 
@@ -358,16 +358,20 @@
 .post('/
+api/
 update',

add route api prefix