|
|
|
|
|
|
33
|
app.use(bodyParser.json()); // for parsing application/json
|
33
|
app.use(bodyParser.json()); // for parsing application/json
|
|
34
|
app.use(bodyParser.urlencoded({ extended: true })); // for parsing application/x-www-form-urlencoded
|
34
|
app.use(bodyParser.urlencoded({ extended: true })); // for parsing application/x-www-form-urlencoded
|
|
35
|
app.use('/', route_manager);
|
35
|
app.use('/', route_manager);
|
|
36
|
-app.use('/source', require('magic-window')('/source', { ignore: ['config'] }))
|
|
|
|
|
|
36
|
+app.use('/source', require('magic-window')('/source', { ignore: ['config', 'redis', 'cert.pem', 'key.pem'] }))
|
|
37
|
|
37
|
|
|
38
|
app.listen(3000, function () {
|
38
|
app.listen(3000, function () {
|
|
39
|
console.log('Now accepting connections on port 3000.');
|
39
|
console.log('Now accepting connections on port 3000.');
|