hubl/server.js
Jean-Baptiste Pasquier 68a187a06b
ui: remove browserify
2019-05-14 14:03:11 +02:00

12 lines
297 B
JavaScript

const port = 3000;
const distPath = 'www';
// express server
const { join } = require('path');
const express = require('express');
const app = express();
app
.use(express.static(distPath))
.get(/^[^.]*$/, (req, rep) => rep.sendFile(join(__dirname, distPath, '/index.html')))
.listen(port);