Timeslider Javascript is now minified too

This commit is contained in:
Peter 'Pita' Martischka 2011-07-26 17:39:25 +01:00
parent 2e163f2924
commit 56ab112fa3
3 changed files with 40 additions and 34 deletions

View file

@ -87,19 +87,19 @@ async.waterfall([
});
//serve minified files
app.get('/minified/:id', function(req, res)
app.get('/minified/:id', function(req, res, next)
{
res.header("Server", serverName);
var id = req.params.id;
if(id == "pad.js")
if(id == "pad.js" || id == "timeslider.js")
{
minify.padJS(req,res);
minify.minifyJS(req,res,id);
}
else
{
res.send('404 - Not Found', 404);
next();
}
});