Skip to content

Latest commit

 

History

History
21 lines (16 loc) · 801 Bytes

File metadata and controls

21 lines (16 loc) · 801 Bytes

[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.

MIT License Semver

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());