blob: dd7acd57cd155872e1922ce20d73556f10486bb7 [file] [log] [blame]
const conf = require('./gulp.conf');
const proxy = require('./proxy');
module.exports = function () {
return {
server: {
baseDir: [
conf.paths.tmp,
conf.paths.src
],
middleware: function(req, res, next){
if (req.url.indexOf('xosapi') !== -1) {
proxy.web(req, res);
}
else{
next();
}
}
},
open: true
};
};