summaryrefslogtreecommitdiffstats
path: root/ecomp-portal-FE-os/mock/server.js
diff options
context:
space:
mode:
Diffstat (limited to 'ecomp-portal-FE-os/mock/server.js')
-rw-r--r--ecomp-portal-FE-os/mock/server.js16
1 files changed, 16 insertions, 0 deletions
diff --git a/ecomp-portal-FE-os/mock/server.js b/ecomp-portal-FE-os/mock/server.js
new file mode 100644
index 00000000..cd929a14
--- /dev/null
+++ b/ecomp-portal-FE-os/mock/server.js
@@ -0,0 +1,16 @@
+'use strict';
+let express = require('express');
+let cors = require('cors');
+let app = express();
+
+app.use(cors());
+
+app.use('/ecompportal', require('./ecomp/router'));
+
+let server = app.listen(9001, function () {
+ let host = server.address().address;
+ let port = server.address().port;
+
+ console.log('Example app listening at http://%s:%s', host, port);
+});
+