[API Refactor] Uncomment out erroneous change

This commit is contained in:
Victor Woeltjen 2016-01-08 15:45:30 -08:00
parent 2665e55e59
commit ed454df97d

40
app.js
View File

@ -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']('.'));