Tidied code (#1)
Tidied code Reviewed-on: https://git.cloud.cluster.fun/AverageMarcus/buzzers/pulls/1
This commit is contained in:
parent
1ef7b12f1e
commit
ca815120b0
@ -5,22 +5,17 @@ const Fingerprint = require('express-fingerprint');
|
|||||||
const WebSocket = require('ws');
|
const WebSocket = require('ws');
|
||||||
const http = require('http');
|
const http = require('http');
|
||||||
const randomWords = require('random-words');
|
const randomWords = require('random-words');
|
||||||
|
|
||||||
const rooms = require('./room');
|
const rooms = require('./room');
|
||||||
|
|
||||||
const app = express();
|
const app = express();
|
||||||
const server = http.createServer(app);
|
const server = http.createServer(app);
|
||||||
|
|
||||||
app.use(Fingerprint({
|
app.use(Fingerprint({ parameters: [Fingerprint.useragent, Fingerprint.acceptHeaders, Fingerprint.geoip] }));
|
||||||
parameters: [Fingerprint.useragent, Fingerprint.acceptHeaders, Fingerprint.geoip]
|
|
||||||
}));
|
|
||||||
|
|
||||||
app.use(bodyParser.json());
|
app.use(bodyParser.json());
|
||||||
app.use(bodyParser.urlencoded({ extended: true }));
|
app.use(bodyParser.urlencoded({ extended: true }));
|
||||||
|
|
||||||
app.engine('handlebars', exphbs());
|
app.engine('handlebars', exphbs());
|
||||||
app.set('view engine', 'handlebars');
|
app.set('view engine', 'handlebars');
|
||||||
|
|
||||||
app.use(express.static("public"));
|
app.use(express.static("public"));
|
||||||
|
|
||||||
app.get("/", (request, response) => {
|
app.get("/", (request, response) => {
|
||||||
|
Loading…
Reference in New Issue
Block a user