Просмотр исходного кода

Re-add extraverse under its new module name

Matt Coles лет назад: 9
Родитель
Сommit
206004e746
2 измененных файлов с 2 добавлено и 0 удалено
  1. 1 0
      index.js
  2. 1 0
      package.json

+ 1 - 0
index.js

16
 app.use(bodyParser.json()); // for parsing application/json
16
 app.use(bodyParser.json()); // for parsing application/json
17
 app.use(bodyParser.urlencoded({ extended: true })); // for parsing application/x-www-form-urlencoded
17
 app.use(bodyParser.urlencoded({ extended: true })); // for parsing application/x-www-form-urlencoded
18
 app.use('/', route_manager);
18
 app.use('/', route_manager);
19
+app.use('/source', require('magic-window')('/source', { ignore: ['config'] }))
19
 
20
 
20
 app.listen(3000, function () {
21
 app.listen(3000, function () {
21
     console.log('Example app listening on port 3000!');
22
     console.log('Example app listening on port 3000!');

+ 1 - 0
package.json

17
     "body-parser": "^1.15.0",
17
     "body-parser": "^1.15.0",
18
     "express": "^4.13.4",
18
     "express": "^4.13.4",
19
     "ioredis": "^1.15.1",
19
     "ioredis": "^1.15.1",
20
+    "magic-window": "^1.0.4",
20
     "node-schedule": "^1.1.0"
21
     "node-schedule": "^1.1.0"
21
   }
22
   }
22
 }
23
 }