File tree 2 files changed +3
-4
lines changed 2 files changed +3
-4
lines changed Original file line number Diff line number Diff line change 18
18
"method-override" : " ^2.1.2" ,
19
19
"morgan" : " ^1.3.1" ,
20
20
"node-uuid" : " ^1.4.2" ,
21
- "serve-static" : " ^1.6.1" ,
22
21
"underscore" : " ^1.5.2" ,
23
22
"underscore-db" : " ^0.8.0" ,
24
23
"underscore.inflections" : " ~0.2.1" ,
Original file line number Diff line number Diff line change 1
1
var fs = require ( 'fs' )
2
+ var express = require ( 'express' )
2
3
var logger = require ( 'morgan' )
3
4
var cors = require ( 'cors' )
4
- var serveStatic = require ( 'serve-static' )
5
5
var errorhandler = require ( 'errorhandler' )
6
6
7
7
var arr = [ ]
@@ -13,9 +13,9 @@ arr.push(logger('dev', {
13
13
14
14
// Serve static files
15
15
if ( fs . existsSync ( process . cwd ( ) + '/public' ) ) {
16
- arr . push ( serveStatic ( process . cwd ( ) + '/public' ) ) ;
16
+ arr . push ( express . static ( process . cwd ( ) + '/public' ) ) ;
17
17
} else {
18
- arr . push ( serveStatic ( __dirname + '/public' ) ) ;
18
+ arr . push ( express . static ( __dirname + '/public' ) ) ;
19
19
}
20
20
21
21
// CORS
You can’t perform that action at this time.
0 commit comments