Files
scrabble-online/client/launchserver.js
2020-11-28 23:31:46 +00:00

16 lines
337 B
JavaScript

const Express = require('express');
const App = Express();
const Port = 8080;
const CATALOUGE_SERVER = 'localhost:8081';
App.use(Express.static('public'));
App.get('catalogue', async (req, res, next) => {
res.end({server: CATALOUGE_SERVER});
});
App.listen(Port, () => {
console.log(`INFO: SERVER LISTENING ON ${Port}`);
});