Forgot to add req and res entry

This commit is contained in:
Luke Slater 2012-02-11 15:55:14 +00:00
parent 2db1174689
commit 5ef21027ea

View File

@ -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() } });
}); });