oneuptime/accounts/index.js
2019-08-02 18:26:16 +05:30

11 lines
265 B
JavaScript
Executable File

const express = require('express');
const path = require('path');
const app = express();
app.use(express.static(path.join(__dirname, 'build')));
app.get('/*', function(req, res) {
res.sendFile(path.join(__dirname, 'build', 'index.html'));
});
app.listen(3003);