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/server.js | 11 +++++++++++ 1 file changed, 11 insertions(+) create mode 100644 src/snake/server.js (limited to 'src/snake/server.js') 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