aboutsummaryrefslogtreecommitdiff
path: root/src/sim/server.js
diff options
context:
space:
mode:
authorMark Powers <markppowers0@gmail.com>2020-05-13 10:53:44 -0500
committerMark Powers <markppowers0@gmail.com>2020-05-13 10:53:44 -0500
commit1855e0c673b06399ca89aa0c705d30b1a9ea3b97 (patch)
tree2c78eceab67bc2f377449a25df7f87181876070b /src/sim/server.js
parenta5706caa9cd91e357085d77c62aff7107ac76fc1 (diff)
Add sim and paperflight games
Diffstat (limited to 'src/sim/server.js')
-rw-r--r--src/sim/server.js10
1 files changed, 10 insertions, 0 deletions
diff --git a/src/sim/server.js b/src/sim/server.js
new file mode 100644
index 0000000..5328b03
--- /dev/null
+++ b/src/sim/server.js
@@ -0,0 +1,10 @@
+function setUpRoutes(server, models, jwtFunctions, database) {
+ server.get('/sim', (req, res) => res.sendFile(__dirname + "/index.html"))
+ server.get('/sim/styles.css', (req, res) => res.sendFile(__dirname + "/static/styles.css"))
+ server.get('/sim/tiles.js', (req, res) => res.sendFile(__dirname + "/static/tiles.js"))
+ server.get('/sim/items.js', (req, res) => res.sendFile(__dirname + "/static/items.js"))
+}
+
+module.exports = {
+ setUpRoutes
+};