fix routing of rjs modules

v1.18.x
psychobunny 9 years ago
parent 902f474888
commit d83a1987eb

@ -95,7 +95,7 @@ module.exports = function(Meta) {
async.series([ async.series([
function(next) { function(next) {
async.each(Meta.js.scripts.modules, function(localPath, next) { async.each(Meta.js.scripts.modules, function(localPath, next) {
app.get(path.join('/src/modules/', path.basename(localPath)), function(req, res) { app.get('/src/modules/' + path.basename(localPath), function(req, res) {
return res.sendFile(path.join(__dirname, '../../', localPath), { return res.sendFile(path.join(__dirname, '../../', localPath), {
maxAge: app.enabled('cache') ? 5184000000 : 0 maxAge: app.enabled('cache') ? 5184000000 : 0
}); });

Loading…
Cancel
Save