mirror of
https://github.com/reality/dbot.git
synced 2024-12-25 04:02:39 +01:00
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', { });
|
||||
});
|
||||
|
||||
// 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
|
||||
app.get('/quotes', function(req, res) {
|
||||
res.render('quotelist', { 'name': dbot.name, 'quotelist': Object.keys(dbot.db.quoteArrs) });
|
||||
|
Loading…
Reference in New Issue
Block a user