@dylan/swap-redirect

0.1.0 • Public • Published

Swap Redirect

Middleware for Dylan which enables res.swapRedirect.

Install

npm install @dylan/swap-redirect

Usage

const dylan = require('dylan');
const enableSwapRedirects = require('@dylan/swap-redirect');
const app = dylan();

app.use(enableSwapRedirects());

app.get('/foo', (req, res) => {
  res.swapRedirect();
});

/@dylan/swap-redirect/

    Package Sidebar

    Install

    npm i @dylan/swap-redirect

    Weekly Downloads

    4

    Version

    0.1.0

    License

    MIT

    Unpacked Size

    2.04 kB

    Total Files

    4

    Last publish

    Collaborators

    • steadymade
    • shanebo