Moved minified
This commit is contained in:
parent
0730eb5b8d
commit
28babf0aa5
|
@ -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);
|
||||||
|
}
|
|
@ -128,9 +128,6 @@ async.waterfall([
|
||||||
gracefulShutdown();
|
gracefulShutdown();
|
||||||
});
|
});
|
||||||
|
|
||||||
//serve minified files
|
|
||||||
app.get('/minified/:filename', minify.minifyJS);
|
|
||||||
|
|
||||||
//checks for padAccess
|
//checks for padAccess
|
||||||
function hasPadAccess(req, res, callback)
|
function hasPadAccess(req, res, callback)
|
||||||
{
|
{
|
||||||
|
|
|
@ -17,6 +17,12 @@
|
||||||
"hooks": {
|
"hooks": {
|
||||||
"expressServer": "../padurlsanitize:expressServer"
|
"expressServer": "../padurlsanitize:expressServer"
|
||||||
}
|
}
|
||||||
|
},
|
||||||
|
{
|
||||||
|
"name": "minified",
|
||||||
|
"hooks": {
|
||||||
|
"expressServer": "../minified:expressServer"
|
||||||
|
}
|
||||||
}
|
}
|
||||||
]
|
]
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in New Issue