diff options
author | Mark Powers <markppowers0@gmail.com> | 2020-04-17 22:56:57 -0500 |
---|---|---|
committer | Mark Powers <markppowers0@gmail.com> | 2020-04-17 22:56:57 -0500 |
commit | ecd8d064a370ce0b9d4a353f6151638b60838208 (patch) | |
tree | e339598839261d8caca078d75b4327f3b034b1f7 /src/cosmic-cargo/server.js | |
parent | 84dca4c6dc0cff9a417ebd0d8f7de06acafa6725 (diff) |
Add cosmic cargo
Diffstat (limited to 'src/cosmic-cargo/server.js')
-rw-r--r-- | src/cosmic-cargo/server.js | 12 |
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 +}; |