use path option instead of root
This commit is contained in:
parent
bd101ab44f
commit
8defe3718c
@ -212,7 +212,7 @@ PeerServer.prototype._initializeHTTP = function() {
|
|||||||
|
|
||||||
this._app.on('MethodNotAllowed', unknownMethodHandler);
|
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'));
|
res.send(require('../app.json'));
|
||||||
});
|
});
|
||||||
|
|
||||||
|
Loading…
x
Reference in New Issue
Block a user