Add in process-caching, example links
This commit is contained in:
parent
a401a0a351
commit
69c60a078e
4 changed files with 19 additions and 4 deletions
7
app.js
7
app.js
|
@ -44,7 +44,12 @@ app.get('*', function(req,res,next) {
|
|||
});
|
||||
|
||||
app.get('/', function(req, res) {
|
||||
res.render('index', { error: req.flash('search-error') });
|
||||
var samples = [
|
||||
{artist: "Aesop Rock", album: "None Shall Pass", url: '/google/album/Bpnz47tzvmp3p46ht3syerwyvva'},
|
||||
{artist: "Hozier", album: "self-titled album", url: '/google/album/Bd3mxcy3otokg4yc45qktq7l35q'},
|
||||
{artist: "Daft Punk", album: "Discovery", url: '/google/album/B4t6yqqvhnb2hy4st4uisjrcsrm'}
|
||||
];
|
||||
res.render('index', { samples: samples, error: req.flash('search-error') });
|
||||
});
|
||||
|
||||
app.post('/search', search);
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue