From dc4492fee9dd8a36609b5f1af17773a3097a8f3c Mon Sep 17 00:00:00 2001 From: Liran Tal Date: Fri, 24 Oct 2014 17:48:07 +0300 Subject: [PATCH] removing un-necessary .js extension --- app/controllers/articles.server.controller.js | 2 +- app/controllers/users.server.controller.js | 8 ++++---- .../users/users.authentication.server.controller.js | 2 +- app/controllers/users/users.password.server.controller.js | 2 +- app/routes/articles.server.routes.js | 4 ++-- app/routes/core.server.routes.js | 2 +- app/routes/users.server.routes.js | 2 +- config/strategies/facebook.js | 2 +- config/strategies/github.js | 2 +- config/strategies/google.js | 2 +- config/strategies/linkedin.js | 2 +- config/strategies/twitter.js | 2 +- 12 files changed, 16 insertions(+), 16 deletions(-) diff --git a/app/controllers/articles.server.controller.js b/app/controllers/articles.server.controller.js index f6984c8bba..0a24e81733 100644 --- a/app/controllers/articles.server.controller.js +++ b/app/controllers/articles.server.controller.js @@ -4,7 +4,7 @@ * Module dependencies. */ var mongoose = require('mongoose'), - errorHandler = require('./errors.server.controller.js'), + errorHandler = require('./errors.server.controller'), Article = mongoose.model('Article'), _ = require('lodash'); diff --git a/app/controllers/users.server.controller.js b/app/controllers/users.server.controller.js index 4cc02aba35..64e772e9a7 100755 --- a/app/controllers/users.server.controller.js +++ b/app/controllers/users.server.controller.js @@ -9,8 +9,8 @@ var _ = require('lodash'); * Extend user's controller */ module.exports = _.extend( - require('./users/users.authentication.server.controller.js'), - require('./users/users.authorization.server.controller.js'), - require('./users/users.password.server.controller.js'), - require('./users/users.profile.server.controller.js') + require('./users/users.authentication.server.controller'), + require('./users/users.authorization.server.controller'), + require('./users/users.password.server.controller'), + require('./users/users.profile.server.controller') ); \ No newline at end of file diff --git a/app/controllers/users/users.authentication.server.controller.js b/app/controllers/users/users.authentication.server.controller.js index d10978f2c6..c15c8a117c 100644 --- a/app/controllers/users/users.authentication.server.controller.js +++ b/app/controllers/users/users.authentication.server.controller.js @@ -4,7 +4,7 @@ * Module dependencies. */ var _ = require('lodash'), - errorHandler = require('../errors.server.controller.js'), + errorHandler = require('../errors.server.controller'), mongoose = require('mongoose'), passport = require('passport'), User = mongoose.model('User'); diff --git a/app/controllers/users/users.password.server.controller.js b/app/controllers/users/users.password.server.controller.js index 6fbdecaf4d..d857cd13f6 100644 --- a/app/controllers/users/users.password.server.controller.js +++ b/app/controllers/users/users.password.server.controller.js @@ -4,7 +4,7 @@ * Module dependencies. */ var _ = require('lodash'), - errorHandler = require('../errors.server.controller.js'), + errorHandler = require('../errors.server.controller'), mongoose = require('mongoose'), passport = require('passport'), User = mongoose.model('User'), diff --git a/app/routes/articles.server.routes.js b/app/routes/articles.server.routes.js index 0907a1077a..7d840e6fc2 100644 --- a/app/routes/articles.server.routes.js +++ b/app/routes/articles.server.routes.js @@ -3,8 +3,8 @@ /** * Module dependencies. */ -var users = require('../../app/controllers/users.server.controller.js'), - articles = require('../../app/controllers/articles.server.controller.js'); +var users = require('../../app/controllers/users.server.controller'), + articles = require('../../app/controllers/articles.server.controller'); module.exports = function(app) { // Article Routes diff --git a/app/routes/core.server.routes.js b/app/routes/core.server.routes.js index 401e5d686a..1db9d40074 100644 --- a/app/routes/core.server.routes.js +++ b/app/routes/core.server.routes.js @@ -2,6 +2,6 @@ module.exports = function(app) { // Root routing - var core = require('../../app/controllers/core.server.controller.js'); + var core = require('../../app/controllers/core.server.controller'); app.route('/').get(core.index); }; \ No newline at end of file diff --git a/app/routes/users.server.routes.js b/app/routes/users.server.routes.js index fcd2b02eec..bd0a361fed 100644 --- a/app/routes/users.server.routes.js +++ b/app/routes/users.server.routes.js @@ -7,7 +7,7 @@ var passport = require('passport'); module.exports = function(app) { // User Routes - var users = require('../../app/controllers/users.server.controller.js'); + var users = require('../../app/controllers/users.server.controller'); // Setting up the users profile api app.route('/users/me').get(users.me); diff --git a/config/strategies/facebook.js b/config/strategies/facebook.js index 4b2625a912..11bd3686cc 100644 --- a/config/strategies/facebook.js +++ b/config/strategies/facebook.js @@ -7,7 +7,7 @@ var passport = require('passport'), url = require('url'), FacebookStrategy = require('passport-facebook').Strategy, config = require('../config'), - users = require('../../app/controllers/users.server.controller.js'); + users = require('../../app/controllers/users.server.controller'); module.exports = function() { // Use facebook strategy diff --git a/config/strategies/github.js b/config/strategies/github.js index 4fe0330393..799574f58c 100644 --- a/config/strategies/github.js +++ b/config/strategies/github.js @@ -7,7 +7,7 @@ var passport = require('passport'), url = require('url'), GithubStrategy = require('passport-github').Strategy, config = require('../config'), - users = require('../../app/controllers/users.server.controller.js'); + users = require('../../app/controllers/users.server.controller'); module.exports = function() { // Use github strategy diff --git a/config/strategies/google.js b/config/strategies/google.js index 37d2bb4cd4..80caaa2cff 100644 --- a/config/strategies/google.js +++ b/config/strategies/google.js @@ -7,7 +7,7 @@ var passport = require('passport'), url = require('url'), GoogleStrategy = require('passport-google-oauth').OAuth2Strategy, config = require('../config'), - users = require('../../app/controllers/users.server.controller.js'); + users = require('../../app/controllers/users.server.controller'); module.exports = function() { // Use google strategy diff --git a/config/strategies/linkedin.js b/config/strategies/linkedin.js index 3c1f1eabbc..cfc173ffc2 100644 --- a/config/strategies/linkedin.js +++ b/config/strategies/linkedin.js @@ -7,7 +7,7 @@ var passport = require('passport'), url = require('url'), LinkedInStrategy = require('passport-linkedin').Strategy, config = require('../config'), - users = require('../../app/controllers/users.server.controller.js'); + users = require('../../app/controllers/users.server.controller'); module.exports = function() { // Use linkedin strategy diff --git a/config/strategies/twitter.js b/config/strategies/twitter.js index 762aa9139b..3ffb08ba10 100644 --- a/config/strategies/twitter.js +++ b/config/strategies/twitter.js @@ -7,7 +7,7 @@ var passport = require('passport'), url = require('url'), TwitterStrategy = require('passport-twitter').Strategy, config = require('../config'), - users = require('../../app/controllers/users.server.controller.js'); + users = require('../../app/controllers/users.server.controller'); module.exports = function() { // Use twitter strategy