|
|
|
|
|
|
58
|
app.use(bodyParser.json()); // for parsing application/json
|
58
|
app.use(bodyParser.json()); // for parsing application/json
|
|
59
|
app.use(bodyParser.urlencoded({ extended: true })); // for parsing application/x-www-form-urlencoded
|
59
|
app.use(bodyParser.urlencoded({ extended: true })); // for parsing application/x-www-form-urlencoded
|
|
60
|
app.use('/', route_manager);
|
60
|
app.use('/', route_manager);
|
|
61
|
-app.use('/source', require('magic-window')('/source', { ignore: ['config', 'redis', 'cert.pem', 'key.pem', 'dump.rdb'] }))
|
|
|
|
|
|
61
|
+app.use('/source', require('magic-window')('/source', { ignore: ['config', 'redis', 'cert.pem', 'key.pem', 'dump.rdb', 'logpasswd'] }))
|
|
62
|
app.use('/log', auth, express.static('log'));
|
62
|
app.use('/log', auth, express.static('log'));
|
|
63
|
app.use('/log', auth, serveIndex('log', {'icons': true}));
|
63
|
app.use('/log', auth, serveIndex('log', {'icons': true}));
|
|
64
|
|
64
|
|