aboutsummaryrefslogtreecommitdiff
path: root/src/stacker/server.js
diff options
context:
space:
mode:
authorMark Powers <markppowers0@gmail.com>2020-04-07 14:17:24 -0500
committerMark Powers <markppowers0@gmail.com>2020-04-07 14:17:24 -0500
commit1bffb064e2414ced5b1924a4f9fbd822a09c718e (patch)
treef0e4a0a8d9a6f4f58619329bf408fe9bf7d1dd4c /src/stacker/server.js
Initial commit
Diffstat (limited to 'src/stacker/server.js')
-rw-r--r--src/stacker/server.js11
1 files changed, 11 insertions, 0 deletions
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
+};