text: const express = require('express')
  const path = require('path')
  const app = express()
  const simple = require('./simpleController');
  const game = require('./game/controller');
  const bodyParser = require('body-parser');
  
  const servername = "localhost";
  const port = 8080;
  
  
  
  app
      .use(bodyParser.json())
      .use(bodyParser.urlencoded({ extended: false }))
      .use('/', (req, res, next) => {
          res.header("Access-Control-Allow-Origin", "*");
          res.header("Access-Control-Allow-Headers", "*");
          next();      
      })
      .use('/', express.static(path.join(__dirname, "../dist/")))
      .use('/simple', simple)
      .use('/game', game)
      .use('/', (req, res, next) => {
          req.sendFile(path.join(__dirname, "../dist/index.html"));
      })
      .listen(port);
  
  console.log("running on http://" + servername + ":" + port)