aboutsummaryrefslogtreecommitdiff
path: root/src/paperflight/server.js
diff options
context:
space:
mode:
Diffstat (limited to 'src/paperflight/server.js')
-rw-r--r--src/paperflight/server.js11
1 files changed, 11 insertions, 0 deletions
diff --git a/src/paperflight/server.js b/src/paperflight/server.js
new file mode 100644
index 0000000..1f05de2
--- /dev/null
+++ b/src/paperflight/server.js
@@ -0,0 +1,11 @@
+function setUpRoutes(server, models, jwtFunctions, database) {
+ server.get('/paperflight', (req, res) => res.sendFile(__dirname + "/index.html"))
+ server.get('/paperflight/styles.css', (req, res) => res.sendFile(__dirname + "/static/styles.css"))
+ server.get('/paperflight/levels.js', (req, res) => res.sendFile(__dirname + "/static/levels.js"))
+ server.get('/paperflight/update.js', (req, res) => res.sendFile(__dirname + "/static/update.js"))
+ server.get('/paperflight/draw.js', (req, res) => res.sendFile(__dirname + "/static/draw.js"))
+}
+
+module.exports = {
+ setUpRoutes
+};