forked from GitHub/dbot
Forgot to add req and res entry
This commit is contained in:
parent
2db1174689
commit
5ef21027ea
@ -31,7 +31,7 @@ var webInterface = function(dbot) {
|
|||||||
});
|
});
|
||||||
|
|
||||||
// Load random quote category page
|
// Load random quote category page
|
||||||
app.get('/rq', function() {
|
app.get('/rq', function(req, res) {
|
||||||
var rCategory = Object.keys(dbot.db.quoteArrs).random();
|
var rCategory = Object.keys(dbot.db.quoteArrs).random();
|
||||||
res.render('quotes', { 'quotes': dbot.db.quoteArrs[rCategory], locals: { 'url_regex': RegExp.prototype.url_regex() } });
|
res.render('quotes', { 'quotes': dbot.db.quoteArrs[rCategory], locals: { 'url_regex': RegExp.prototype.url_regex() } });
|
||||||
});
|
});
|
||||||
|
Loading…
Reference in New Issue
Block a user