summaryrefslogtreecommitdiffstats
path: root/ecomp-portal-FE/mock/server.js
blob: cd929a143c92f4088dca7610488d94f8b52b3570 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
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);
});