talasila | 4ad39a5 | 2017-02-07 15:03:57 -0500 | [diff] [blame] | 1 | 'use strict'; |
2 | let express = require('express'); | ||||
3 | let cors = require('cors'); | ||||
4 | let app = express(); | ||||
5 | |||||
6 | app.use(cors()); | ||||
7 | |||||
8 | app.use('/ecompportal', require('./ecomp/router')); | ||||
9 | |||||
10 | let server = app.listen(9001, function () { | ||||
11 | let host = server.address().address; | ||||
12 | let port = server.address().port; | ||||
13 | |||||
14 | console.log('Example app listening at http://%s:%s', host, port); | ||||
15 | }); | ||||
16 |