Skip to content

A tiny history api fallback for single page apps running on the Express server with webpack bundler

License

Notifications You must be signed in to change notification settings

n-srg/express-history-api-fallback-middleware

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

3 Commits
 
 
 
 
 
 
 
 
 
 

Repository files navigation

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

About

A tiny history api fallback for single page apps running on the Express server with webpack bundler

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published