Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP
Browse files

Fixed spacing inconsistencies

  • Loading branch information...
commit 206ee255746ec48dda1d89b03aae01d341049be2 1 parent 9680067
@jarradseers authored
View
13 examples/mvc/controllers/user.js
@@ -1,8 +1,7 @@
-
exports.isAuthenticated = function(req, res, next) {
- if (true) {
- next();
- } else {
- res.send('Not authenticated');
- }
-};
+ if (true) {
+ next();
+ } else {
+ res.send('Not authenticated');
+ }
+};
View
2  examples/mvc/models/user.js
@@ -16,4 +16,4 @@ module.exports = function(app) {
};
return User;
-}
+}
View
12 examples/mvc/routes/site.js
@@ -4,16 +4,16 @@ module.exports = function(app) {
* Load Controllers.
*/
- var site = app.controllers.site;
- var user = app.controllers.user;
+ var site = app.controllers.site;
+ var user = app.controllers.user;
/**
* Route to controllers.
*/
- app.get('/',
- user.isAuthenticated,
- site.index
- );
+ app.get('/',
+ user.isAuthenticated,
+ site.index
+ );
};
View
1  examples/simple/controllers/site.js
@@ -1,4 +1,3 @@
-
exports.index = function(req, res, next) {
res.send('authenticated');
};
View
13 examples/simple/controllers/user.js
@@ -1,8 +1,7 @@
-
exports.isAuthenticated = function(req, res, next) {
- if (true) {
- next();
- } else {
- res.send('Not authenticated');
- }
-};
+ if (true) {
+ next();
+ } else {
+ res.send('Not authenticated');
+ }
+};
View
12 examples/simple/routes/site.js
@@ -4,16 +4,16 @@ module.exports = function(app) {
* Load Controllers.
*/
- var site = app.controllers.site;
- var user = app.controllers.user;
+ var site = app.controllers.site;
+ var user = app.controllers.user;
/**
* Route to controllers.
*/
- app.get('/',
- user.isAuthenticated,
- site.index
- );
+ app.get('/',
+ user.isAuthenticated,
+ site.index
+ );
};
View
3  examples/verbose/controllers/site.js
@@ -1,4 +1,3 @@
-
exports.index = function(req, res, next) {
- res.send('authenticated');
+ res.send('authenticated');
};
View
13 examples/verbose/controllers/user.js
@@ -1,8 +1,7 @@
-
exports.isAuthenticated = function(req, res, next) {
- if (true) {
- next();
- } else {
- res.send('Not authenticated');
- }
-};
+ if (true) {
+ next();
+ } else {
+ res.send('Not authenticated');
+ }
+};
Please sign in to comment.
Something went wrong with that request. Please try again.