Fixing bug in creation
Change-Id: Ie4059b197fecfd605c2ad8bda334a9d1d18285de
diff --git a/conf/browsersync-dist.conf.js b/conf/browsersync-dist.conf.js
index cbefe1d..d80f1ef 100644
--- a/conf/browsersync-dist.conf.js
+++ b/conf/browsersync-dist.conf.js
@@ -1,4 +1,5 @@
const conf = require('./gulp.conf');
+const proxy = require('./proxy');
module.exports = function () {
return {
@@ -6,10 +7,18 @@
baseDir: [
conf.paths.dist
],
+ middleware: function(req, res, next){
+ if (req.url.indexOf('xosapi') !== -1) {
+ proxy.web(req, res);
+ }
+ else{
+ next();
+ }
+ },
routes: {
"/spa": "./dist"
}
},
- open: false
+ open: true
};
};