Tidied code (#1)

Tidied code

Reviewed-on: https://git.cloud.cluster.fun/AverageMarcus/buzzers/pulls/1
This commit is contained in:
Marcus Noble 2020-04-18 19:27:51 +00:00
parent 1ef7b12f1e
commit ca815120b0

View File

@ -5,22 +5,17 @@ const Fingerprint = require('express-fingerprint');
const WebSocket = require('ws');
const http = require('http');
const randomWords = require('random-words');
const rooms = require('./room');
const app = express();
const server = http.createServer(app);
app.use(Fingerprint({
parameters: [Fingerprint.useragent, Fingerprint.acceptHeaders, Fingerprint.geoip]
}));
app.use(Fingerprint({ parameters: [Fingerprint.useragent, Fingerprint.acceptHeaders, Fingerprint.geoip] }));
app.use(bodyParser.json());
app.use(bodyParser.urlencoded({ extended: true }));
app.engine('handlebars', exphbs());
app.set('view engine', 'handlebars');
app.use(express.static("public"));
app.get("/", (request, response) => {