aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--draughts/package.json30
-rw-r--r--draughts/routes/index.js14
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;
-
-
-
-
-
-