소스 검색

use path option instead of root

Jonathan Johnson 10 년 전
부모
커밋
8defe3718c
1개의 변경된 파일1개의 추가작업 그리고 1개의 파일을 삭제
  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.get('/', function(req, res, next) {
+  this._app.get(this._options.path, function(req, res, next) {
     res.send(require('../app.json'));
   });