From eccb53b1216be226f295bda439f3a19e5ec4337a Mon Sep 17 00:00:00 2001 From: Thomas Voss Date: Thu, 6 Jan 2022 16:24:38 +0100 Subject: Use tabs, not spaces like some fucking heretic --- draughts/package.json | 30 +++++++++++++++--------------- draughts/routes/index.js | 14 ++++---------- 2 files changed, 19 insertions(+), 25 deletions(-) diff --git a/draughts/package.json b/draughts/package.json index d09ecac..1e16e8a 100644 --- a/draughts/package.json +++ b/draughts/package.json @@ -1,17 +1,17 @@ { - "name": "draughts", - "version": "0.0.0", - "private": true, - "scripts": { - "start": "node app.js 3000" - }, - "dependencies": { - "cookie-parser": "~1.4.4", - "debug": "~2.6.9", - "ejs": "~2.6.1", - "express": "~4.16.1", - "http-errors": "~1.6.3", - "morgan": "~1.9.1", - "ws": "^8.4.0" - } + "name": "draughts", + "version": "0.0.0", + "private": true, + "scripts": { + "start": "node app.js 3000" + }, + "dependencies": { + "cookie-parser": "~1.4.4", + "debug": "~2.6.9", + "ejs": "~2.6.1", + "express": "~4.16.1", + "http-errors": "~1.6.3", + "morgan": "~1.9.1", + "ws": "^8.4.0" + } } diff --git a/draughts/routes/index.js b/draughts/routes/index.js index df1996d..ca11c17 100644 --- a/draughts/routes/index.js +++ b/draughts/routes/index.js @@ -2,19 +2,13 @@ const express = require("express"); const router = express.Router(); /* GET home page */ -router.get("/", function(req, res) { - res.sendFile("splash.html", { root: "./public" }); +router.get("/", (req, res) => { + res.sendFile("splash.html", { root: "./public" }); }); /* Pressing the 'PLAY' button, returns this page */ -router.get("/play", function(req, res) { - res.sendFile("game.html", { root: "./public" }); +router.get("/play", (req, res) => { + res.sendFile("game.html", { root: "./public" }); }); module.exports = router; - - - - - - -- cgit v1.2.3