Sfoglia il codice sorgente

use path option instead of root

Jonathan Johnson 10 anni fa
parent
commit
8defe3718c
1 ha cambiato i file con 1 aggiunte e 1 eliminazioni
  1. 1 1
      lib/server.js

+ 1 - 1
lib/server.js

@@ -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'));
   });
   });