From ecd8d064a370ce0b9d4a353f6151638b60838208 Mon Sep 17 00:00:00 2001 From: Mark Powers Date: Fri, 17 Apr 2020 22:56:57 -0500 Subject: Add cosmic cargo --- src/cosmic-cargo/server.js | 12 ++++++++++++ 1 file changed, 12 insertions(+) create mode 100644 src/cosmic-cargo/server.js (limited to 'src/cosmic-cargo/server.js') 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 +}; -- cgit v1.2.3