express-history-api-fallback-middleware
v1.0.1
Published
Tiny express history api fallback for webpack bundler
Downloads
12
Maintainers
Readme
[Express middleware] History api fallback middleware
Express middleware for single page apps with client side routing.
Works as a middleware for Express.js servers. Can be used as either an application middleware or a router middleware.
Installation
npm i express-history-api-fallback-middleware --save-dev
Usage
const express = require('express');
const webpackHistoryApiFallback = require('express-history-api-fallback-middleware');
const server = express();
server.use(webpackHistoryApiFallback());