forked from GitHub/dbot
Add routing for web display of logs.
This commit is contained in:
parent
9d5cf694a8
commit
e8eb665900
@ -16,6 +16,11 @@ var webInterface = function(dbot) {
|
|||||||
//res.render('index', { });
|
//res.render('index', { });
|
||||||
});
|
});
|
||||||
|
|
||||||
|
// Displays any logs collected by the logging module
|
||||||
|
app.get('/log', function(req, res) {
|
||||||
|
res.render('log', { 'name': dbot.name, 'log': (dbot.log || []) });
|
||||||
|
});
|
||||||
|
|
||||||
// Lists the quote categories
|
// Lists the quote categories
|
||||||
app.get('/quotes', function(req, res) {
|
app.get('/quotes', function(req, res) {
|
||||||
res.render('quotelist', { 'name': dbot.name, 'quotelist': Object.keys(dbot.db.quoteArrs) });
|
res.render('quotelist', { 'name': dbot.name, 'quotelist': Object.keys(dbot.db.quoteArrs) });
|
||||||
|
Loading…
Reference in New Issue
Block a user