aboutsummaryrefslogtreecommitdiff
path: root/src/cosmic-cargo/server.js
diff options
context:
space:
mode:
Diffstat (limited to 'src/cosmic-cargo/server.js')
-rw-r--r--src/cosmic-cargo/server.js12
1 files changed, 12 insertions, 0 deletions
diff --git a/src/cosmic-cargo/server.js b/src/cosmic-cargo/server.js
new file mode 100644
index 0000000..13c8fd0
--- /dev/null
+++ b/src/cosmic-cargo/server.js
@@ -0,0 +1,12 @@
+const path = require('path');
+const fs = require('fs');
+const express = require('express');
+
+function setUpRoutes(server, models, jwtFunctions, database) {
+ // server.get('/cosmic-cargo', (req, res) => res.sendFile(__dirname + "/cosmic-cargo/index.html"))
+ server.use('/cosmic-cargo', express.static(__dirname + '/static'))
+}
+
+module.exports = {
+ setUpRoutes
+};