mirror of
https://github.com/nasa/openmct.git
synced 2024-12-20 21:53:08 +00:00
[API Refactor] Uncomment out erroneous change
This commit is contained in:
parent
2665e55e59
commit
ed454df97d
40
app.js
40
app.js
@ -40,26 +40,26 @@
|
|||||||
}
|
}
|
||||||
|
|
||||||
// Override bundles.json for HTTP requests
|
// Override bundles.json for HTTP requests
|
||||||
//app.use('/' + BUNDLE_FILE, function (req, res) {
|
app.use('/' + BUNDLE_FILE, function (req, res) {
|
||||||
// var bundles;
|
var bundles;
|
||||||
//
|
|
||||||
// try {
|
try {
|
||||||
// bundles = JSON.parse(fs.readFileSync(BUNDLE_FILE, 'utf8'));
|
bundles = JSON.parse(fs.readFileSync(BUNDLE_FILE, 'utf8'));
|
||||||
// } catch (e) {
|
} catch (e) {
|
||||||
// bundles = [];
|
bundles = [];
|
||||||
// }
|
}
|
||||||
//
|
|
||||||
// // Handle command line inclusions/exclusions
|
// Handle command line inclusions/exclusions
|
||||||
// bundles = bundles.concat(options.include);
|
bundles = bundles.concat(options.include);
|
||||||
// bundles = bundles.filter(function (bundle) {
|
bundles = bundles.filter(function (bundle) {
|
||||||
// return options.exclude.indexOf(bundle) === -1;
|
return options.exclude.indexOf(bundle) === -1;
|
||||||
// });
|
});
|
||||||
// bundles = bundles.filter(function (bundle, index) { // Uniquify
|
bundles = bundles.filter(function (bundle, index) { // Uniquify
|
||||||
// return bundles.indexOf(bundle) === index;
|
return bundles.indexOf(bundle) === index;
|
||||||
// });
|
});
|
||||||
//
|
|
||||||
// res.send(JSON.stringify(bundles));
|
res.send(JSON.stringify(bundles));
|
||||||
//});
|
});
|
||||||
|
|
||||||
// Expose everything else as static files
|
// Expose everything else as static files
|
||||||
app.use(express['static']('.'));
|
app.use(express['static']('.'));
|
||||||
|
Loading…
Reference in New Issue
Block a user