|
|
@ -38,7 +38,7 @@ function setupPluginSourceMapping(app) {
|
|
|
|
prefix = __dirname.split(path.sep).length - 1;
|
|
|
|
prefix = __dirname.split(path.sep).length - 1;
|
|
|
|
|
|
|
|
|
|
|
|
routes.forEach(function(route) {
|
|
|
|
routes.forEach(function(route) {
|
|
|
|
mapping = '/' + route.split('/').slice(prefix).join('/');
|
|
|
|
mapping = path.sep + route.split(path.sep).slice(prefix).join(path.sep);
|
|
|
|
app.get(mapping, function(req, res) {
|
|
|
|
app.get(mapping, function(req, res) {
|
|
|
|
res.type('text/javascript').sendfile(route);
|
|
|
|
res.type('text/javascript').sendfile(route);
|
|
|
|
});
|
|
|
|
});
|
|
|
|