From GandalfLife, 3 Months ago, written in JavaScript.
Embed
  1. app.get('*', (req, res) => {
  2.   res.sendFile(path.join(__dirname, '/../frontend/dist/frontend/index.html'));
  3. });