2013-04-15 03:10:29 +02:00
|
|
|
var _ = require('underscore')._;
|
|
|
|
|
|
|
|
var pages = function(dbot) {
|
|
|
|
return {
|
|
|
|
'/imgur/random': function(req, res) {
|
2013-04-16 20:59:29 +02:00
|
|
|
res.render('imgurr', { });
|
|
|
|
},
|
|
|
|
|
|
|
|
'/imgur/stats': function(req, res) {
|
|
|
|
res.render('imgurstats', {
|
|
|
|
'name': dbot.config.name,
|
|
|
|
'totalHttpRequests': this.db.totalHttpRequests,
|
|
|
|
'totalApiRequests': this.db.totalApiRequests,
|
|
|
|
'totalImages': this.db.totalImages
|
2013-04-15 03:10:29 +02:00
|
|
|
});
|
|
|
|
}
|
|
|
|
};
|
|
|
|
};
|
|
|
|
|
|
|
|
exports.fetch = function(dbot) {
|
|
|
|
return pages(dbot);
|
|
|
|
};
|