File tree Expand file tree Collapse file tree 2 files changed +3
-4
lines changed Expand file tree Collapse file tree 2 files changed +3
-4
lines changed Original file line number Diff line number Diff line change 1818    "method-override" : " ^2.1.2" 
1919    "morgan" : " ^1.3.1" 
2020    "node-uuid" : " ^1.4.2" 
21-     "serve-static" : " ^1.6.1" 
2221    "underscore" : " ^1.5.2" 
2322    "underscore-db" : " ^0.8.0" 
2423    "underscore.inflections" : " ~0.2.1" 
Original file line number Diff line number Diff line change 11var  fs  =  require ( 'fs' ) 
2+ var  express  =  require ( 'express' ) 
23var  logger  =  require ( 'morgan' ) 
34var  cors  =  require ( 'cors' ) 
4- var  serveStatic  =  require ( 'serve-static' ) 
55var  errorhandler  =  require ( 'errorhandler' ) 
66
77var  arr  =  [ ] 
@@ -13,9 +13,9 @@ arr.push(logger('dev', {
1313
1414// Serve static files 
1515if  ( fs . existsSync ( process . cwd ( )  +  '/public' ) )  { 
16-   arr . push ( serveStatic ( process . cwd ( )  +  '/public' ) ) ; 
16+   arr . push ( express . static ( process . cwd ( )  +  '/public' ) ) ; 
1717}  else  { 
18-   arr . push ( serveStatic ( __dirname  +  '/public' ) ) ; 
18+   arr . push ( express . static ( __dirname  +  '/public' ) ) ; 
1919} 
2020
2121// CORS 
 
 
   
 
     
   
   
          
    
    
     
    
      
     
     
    You can’t perform that action at this time.
  
 
    
  
    
      
        
     
       
      
     
   
 
    
    
  
 
  
 
     
    
0 commit comments