Handling trailing slashes in connect-history-api-fallback and Express Handling trailing slashes in connect-history-api-fallback and Express express express

Handling trailing slashes in connect-history-api-fallback and Express


Please make sure you're running the latest version of connect-history-api-fallback. I just tested it and it's working correctly with /signup and /signup/

const express = require('express');const history = require('connect-history-api-fallback');const app = express();app.use(    history({        rewrites: [            { from: /\/signup/, to: '/signup'}        ]    }))app.get('/signup', function(req, res) {    res.send("signup");})app.listen(8080);