Render share page before all matches are found.

This commit is contained in:
Jonathan Cremin 2014-12-13 15:56:52 +00:00
parent 6f3e8b06a6
commit 4bfdf0dc45
7 changed files with 81 additions and 64 deletions

3
app.js
View file

@ -66,7 +66,8 @@ app.get('/', function(req, res) {
});
app.post('/search', search);
app.get('/:service/:type/:id', share);
app.get('/:service/:type/:id.json', share.json);
app.get('/:service/:type/:id', share.html);
app.get('/itunes/*', itunesProxy);
// catch 404 and forward to error handler