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/stacker/index.html | 215 +++++++++++++++++++++++++++++++++++++++++++++++++ src/stacker/server.js | 11 +++ 2 files changed, 226 insertions(+) create mode 100644 src/stacker/index.html create mode 100644 src/stacker/server.js (limited to 'src/stacker') diff --git a/src/stacker/index.html b/src/stacker/index.html new file mode 100644 index 0000000..eb256a6 --- /dev/null +++ b/src/stacker/index.html @@ -0,0 +1,215 @@ + + + + + Stacker + + + + + + + + + + + \ No newline at end of file diff --git a/src/stacker/server.js b/src/stacker/server.js new file mode 100644 index 0000000..ee2fca6 --- /dev/null +++ b/src/stacker/server.js @@ -0,0 +1,11 @@ +const path = require('path'); +const fs = require('fs'); + +function setUpRoutes(server, models, jwtFunctions, database) { + server.get('/stacker', (req, res) => res.sendFile(__dirname + "/index.html")) + server.get('/stacker/styles.css', (req, res) => res.sendFile(__dirname + "/static/styles.css")) +} + +module.exports = { + setUpRoutes +}; -- cgit v1.2.3