-
Notifications
You must be signed in to change notification settings - Fork 0
/
index.js
27 lines (20 loc) · 865 Bytes
/
index.js
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
const express = require('express');
const bodyParser = require('body-parser');
const auxillaryFuelRoutes = require('./routes/fueltank.routes');
const RunwayRoutes = require('./routes/runway.routes');
const TaxiwayRoutes = require('./routes/taxiway.routes');
const AirplaneRoutes = require('./routes/airplane.routes');
const replayRoutes = require('./routes/replay.routes');
const app = (module.exports = express());
const port = 8080;
require('./utils/database.utils');
require('./utils/MQEventListener.utils');
app.use(bodyParser.json({ extended: true }));
app.use('/airside/fuel', auxillaryFuelRoutes);
app.use('/airside/runway', RunwayRoutes);
app.use('/airside/taxiway', TaxiwayRoutes);
app.use('/airside/airplane', AirplaneRoutes);
app.use('/airside/replay', replayRoutes);
app.listen(port, () => {
console.info(`Started Airside on port ${port}`);
});