Minify uses the stardard middleware interface.

This commit is contained in:
Chad Weider 2012-01-17 00:57:59 -08:00
parent 1c0a74d7c6
commit c3acdbe329
2 changed files with 6 additions and 16 deletions

View file

@ -123,19 +123,7 @@ async.waterfall([
});
//serve minified files
app.get('/minified/:id', function(req, res, next)
{
var id = req.params.id;
if(id == "pad.js" || id == "timeslider.js")
{
minify.minifyJS(req,res,id);
}
else
{
next();
}
});
app.get('/minified/:filename', minify.minifyJS);
//checks for padAccess
function hasPadAccess(req, res, callback)