use path option instead of root

This commit is contained in:
Jonathan Johnson 2014-11-01 14:42:36 -05:00
parent bd101ab44f
commit 8defe3718c

View File

@ -212,7 +212,7 @@ PeerServer.prototype._initializeHTTP = function() {
this._app.on('MethodNotAllowed', unknownMethodHandler);
this._app.get('/', function(req, res, next) {
this._app.get(this._options.path, function(req, res, next) {
res.send(require('../app.json'));
});