Update HTML5 History API on SPA's
JS
S
JavaScriptMiddleware to proxy requests through a specified index page, useful for Single Page Applications that utilise the HTML5 History API.
1const history = require('connect-history-api-fallback');
2const express = require('express');
3const app = express();
4app.use(history());
5Created on 2/21/2018