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/math/server.js | 13 +++++++++++++ 1 file changed, 13 insertions(+) create mode 100644 src/math/server.js (limited to 'src/math/server.js') 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 +}; -- cgit v1.2.3