forked from GitHub/dbot
quote list
This commit is contained in:
parent
9d0077b184
commit
6d13e4ee07
@ -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
3
views/quotelist.jade
Normal file
@ -0,0 +1,3 @@
|
||||
ul#quotes
|
||||
-each quote in quotes
|
||||
li a(href='http://identi.ca/#{quote}') #{quote}
|
Loading…
Reference in New Issue
Block a user