File tree Expand file tree Collapse file tree 2 files changed +14
-16
lines changed Expand file tree Collapse file tree 2 files changed +14
-16
lines changed Original file line number Diff line number Diff line change 11'use strict' ;
22
33exports . awesomeThings = function ( req , res ) {
4- res . json ( [
5- 'HTML5 Boilerplate' ,
6- 'AngularJS' ,
7- 'Karma' ,
8- 'Express'
9- ] ) ;
4+ res . json ( [
5+ 'HTML5 Boilerplate' ,
6+ 'AngularJS' ,
7+ 'Karma' ,
8+ 'Express'
9+ ] ) ;
1010} ;
Original file line number Diff line number Diff line change 1- /**
2- * Module dependencies.
3- */
1+ 'use strict' ;
42
5- var express = require ( 'express' )
6- , http = require ( 'http' )
7- , path = require ( 'path' )
8- , api = require ( './lib/api' ) ;
3+ var express = require ( 'express' ) ,
4+ http = require ( 'http' ) ,
5+ path = require ( 'path' ) ,
6+ api = require ( './lib/api' ) ;
97
108var app = express ( ) ;
119
@@ -18,11 +16,11 @@ app.use(express.methodOverride());
1816app . use ( app . router ) ;
1917
2018// development only
21- if ( 'development' == app . get ( 'env' ) ) {
19+ if ( 'development' === app . get ( 'env' ) ) {
2220 app . use ( express . static ( path . join ( __dirname , '.tmp' ) ) ) ;
2321 app . use ( express . static ( path . join ( __dirname , 'app' ) ) ) ;
24- app . use ( express . errorHandler ( ) ) ;
25- }
22+ app . use ( express . errorHandler ( ) ) ;
23+ }
2624// production only
2725else {
2826 app . use ( express . favicon ( path . join ( __dirname , 'public/favicon.ico' ) ) ) ;
You can’t perform that action at this time.
0 commit comments