diff options
Diffstat (limited to 'mascara/server/index.js')
-rw-r--r-- | mascara/server/index.js | 21 |
1 files changed, 0 insertions, 21 deletions
diff --git a/mascara/server/index.js b/mascara/server/index.js deleted file mode 100644 index a30120438..000000000 --- a/mascara/server/index.js +++ /dev/null @@ -1,21 +0,0 @@ -const path = require('path') -const express = require('express') -const compression = require('compression') - -module.exports = createMetamascaraServer - - -function createMetamascaraServer () { - - // setup server - const server = express() - server.use(compression()) - - // serve assets - server.use(express.static(path.join(__dirname, '/../ui/'), { setHeaders: (res) => res.set('X-Frame-Options', 'DENY') })) - server.use(express.static(path.join(__dirname, '/../../dist/mascara'))) - server.use(express.static(path.join(__dirname, '/../proxy'))) - - return server - -} |