'use strict'; var server; var express = require('express'); var bodyParser = require('body-parser'); var api = require('./api'); class Server { constructor() { console.log('Creating Server'); this.app = express(); // parse application/x-www-form-urlencoded this.app.use(bodyParser.urlencoded({ extended: false })); // parse application/json this.app.use(bodyParser.json()); this.app.use('/api', api); this.app.get('/', (req, res) => { res.status(200) .send('