File tree 2 files changed +14
-16
lines changed
2 files changed +14
-16
lines changed Original file line number Diff line number Diff line change 1
1
'use strict' ;
2
2
3
3
exports . 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
+ ] ) ;
10
10
} ;
Original file line number Diff line number Diff line change 1
- /**
2
- * Module dependencies.
3
- */
1
+ 'use strict' ;
4
2
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' ) ;
9
7
10
8
var app = express ( ) ;
11
9
@@ -18,11 +16,11 @@ app.use(express.methodOverride());
18
16
app . use ( app . router ) ;
19
17
20
18
// development only
21
- if ( 'development' == app . get ( 'env' ) ) {
19
+ if ( 'development' === app . get ( 'env' ) ) {
22
20
app . use ( express . static ( path . join ( __dirname , '.tmp' ) ) ) ;
23
21
app . use ( express . static ( path . join ( __dirname , 'app' ) ) ) ;
24
- app . use ( express . errorHandler ( ) ) ;
25
- }
22
+ app . use ( express . errorHandler ( ) ) ;
23
+ }
26
24
// production only
27
25
else {
28
26
app . use ( express . favicon ( path . join ( __dirname , 'public/favicon.ico' ) ) ) ;
You can’t perform that action at this time.
0 commit comments