diff options
author | Thomas Voss <thomasvoss@live.com> | 2022-01-06 16:24:38 +0100 |
---|---|---|
committer | Thomas Voss <thomasvoss@live.com> | 2022-01-06 16:24:38 +0100 |
commit | eccb53b1216be226f295bda439f3a19e5ec4337a (patch) | |
tree | 603c0d213f7e90aee1c8c08f4de6899823366240 /draughts | |
parent | 5c992e4a7c979b12422cd219597dfc829b494364 (diff) |
Use tabs, not spaces like some fucking heretic
Diffstat (limited to 'draughts')
-rw-r--r-- | draughts/package.json | 30 | ||||
-rw-r--r-- | 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; - - - - - - |