import express from 'express';
const app = express();
app.get('*', (req, res) => {
const title = 'title';
res.send(`<!DOCTYPE html>
<html>
<head>
<meta charset="utf-8">
<title>${title}</title>
</head>
<div id="app"></div>
<script type="text/javascript" charset="utf-8" src="/assets/app.js"></script>
</body>
</html>
`);
});
const PORT = process.env.PORT || 8080;
app.listen(PORT, () => {
console.log(`listening on port ${PORT}`);
});