aboutsummaryrefslogtreecommitdiff
path: root/src/math/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/math/server.js
Initial commit
Diffstat (limited to 'src/math/server.js')
-rw-r--r--src/math/server.js13
1 files changed, 13 insertions, 0 deletions
diff --git a/src/math/server.js b/src/math/server.js
new file mode 100644
index 0000000..e68a41b
--- /dev/null
+++ b/src/math/server.js
@@ -0,0 +1,13 @@
+const path = require('path');
+const fs = require('fs');
+const express = require('express');
+
+function setUpRoutes(server, models, jwtFunctions, database) {
+ server.get('/math', (req, res) => res.sendFile(__dirname + "/index.html"))
+ server.get('/math/styles.css', (req, res) => res.sendFile(__dirname + "/static/styles.css"))
+ server.use('/math/static', express.static(__dirname + '/static'))
+}
+
+module.exports = {
+ setUpRoutes
+};