Removing serve-static direct dependency

This commit is contained in:
Mathew Kurian 2014-12-22 02:14:46 -06:00
parent b4f5bb42e0
commit a2cb9978e3
2 changed files with 2 additions and 4 deletions

View file

@ -4,7 +4,6 @@
'use strict'; 'use strict';
var express = require('express'), var express = require('express'),
serveStatic = require('serve-static'),
path = require('path'), path = require('path'),
fs = require('fs'); fs = require('fs');
@ -44,7 +43,7 @@
//Static files //Static files
webPanel.use('/', serveStatic(path.join(__dirname, '..', 'static'))); webPanel.use('/', express.static(path.join(__dirname, '..', 'static')));
//API //API

View file

@ -41,8 +41,7 @@
"colors": "^1.0.0", "colors": "^1.0.0",
"express": "^4.7.2", "express": "^4.7.2",
"mkdirp": "^0.5.0", "mkdirp": "^0.5.0",
"moment": "^2.8.3", "moment": "^2.8.3"
"serve-static": "^1.7.1"
}, },
"readmeFilename": "README.md" "readmeFilename": "README.md"
} }