Moved minified

This commit is contained in:
Egil Moeller 2012-02-24 23:55:19 +01:00
parent 0730eb5b8d
commit 28babf0aa5
3 changed files with 12 additions and 3 deletions

6
node/minified.js Normal file
View File

@ -0,0 +1,6 @@
var minify = require('./utils/Minify');
exports.expressServer = function (hook_name, args, cb) {
//serve minified files
args.app.get('/minified/:filename', minify.minifyJS);
}

View File

@ -128,9 +128,6 @@ async.waterfall([
gracefulShutdown();
});
//serve minified files
app.get('/minified/:filename', minify.minifyJS);
//checks for padAccess
function hasPadAccess(req, res, callback)
{

View File

@ -17,6 +17,12 @@
"hooks": {
"expressServer": "../padurlsanitize:expressServer"
}
},
{
"name": "minified",
"hooks": {
"expressServer": "../minified:expressServer"
}
}
]
}