Add ability to export specific pad revisions

This commit is contained in:
Jordan 2011-12-18 00:18:35 -05:00
parent ddf1cd345c
commit 2a86d57e46
10 changed files with 96 additions and 29 deletions

View file

@ -264,7 +264,7 @@ async.waterfall([
});
//serve timeslider.html under /p/$padname/timeslider
app.get('/p/:pad/export/:type', function(req, res, next)
app.get('/p/:pad/:rev?/export/:type', function(req, res, next)
{
//ensure the padname is valid and the url doesn't end with a /
if(!padManager.isValidPadId(req.params.pad) || /\/$/.test(req.url))