From 1bffb064e2414ced5b1924a4f9fbd822a09c718e Mon Sep 17 00:00:00 2001 From: Mark Powers Date: Tue, 7 Apr 2020 14:17:24 -0500 Subject: Initial commit --- src/snake/index.html | 83 ++++++++++++++++++++++++++++++++++++++++++++++++++++ src/snake/server.js | 11 +++++++ 2 files changed, 94 insertions(+) create mode 100644 src/snake/index.html create mode 100644 src/snake/server.js (limited to 'src/snake') diff --git a/src/snake/index.html b/src/snake/index.html new file mode 100644 index 0000000..eb11f86 --- /dev/null +++ b/src/snake/index.html @@ -0,0 +1,83 @@ +
+ +
+ diff --git a/src/snake/server.js b/src/snake/server.js new file mode 100644 index 0000000..c73990b --- /dev/null +++ b/src/snake/server.js @@ -0,0 +1,11 @@ +const path = require('path'); +const fs = require('fs'); + +function setUpRoutes(server, models, jwtFunctions, database) { + server.get('/snake', (req, res) => res.sendFile(__dirname + "/index.html")) + server.get('/snake/styles.css', (req, res) => res.sendFile(__dirname + "/static/styles.css")) +} + +module.exports = { + setUpRoutes +}; -- cgit v1.2.3