3
0
mirror of https://github.com/reality/dbot.git synced 2024-11-27 06:19:24 +01:00

quote list

This commit is contained in:
Luke Slater 2011-09-15 12:50:40 +01:00
parent 9d0077b184
commit 6d13e4ee07
2 changed files with 7 additions and 0 deletions

View File

@ -23,6 +23,10 @@ var webInterface = function(dbot) {
}
});
app.get('/quotes/', function(req, res) {
res.render('quotelist', { 'quotes': Object.keys(dbot.db.quoteArrs); });
});
app.listen(1337);
return {

3
views/quotelist.jade Normal file
View File

@ -0,0 +1,3 @@
ul#quotes
-each quote in quotes
li a(href='http://identi.ca/#{quote}') #{quote}