express-history-api-fallback-middleware

1.0.1 • Public • Published

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

Dependencies (0)

    Dev Dependencies (0)

      Package Sidebar

      Install

      npm i express-history-api-fallback-middleware

      Weekly Downloads

      6

      Version

      1.0.1

      License

      MIT

      Unpacked Size

      3.08 kB

      Total Files

      4

      Last publish

      Collaborators

      • n0th1ng_else