@turinggroup/serverless-express-custom-domain-middleware
TypeScript icon, indicating that this package has built-in type declarations

1.1.0 • Public • Published

Serverless Express Custom Domain Middleware

install

npm install @turinggroup/serverless-express-custom-domain-middleware

usage

const customDomainReroute = require('@turinggroup/serverless-express-custom-domain-middleware').customDomainReroute;

app.use(customDomainReroute);

to call custom function when path is rerouted

const customDomainReroute = require('@turinggroup/serverless-express-custom-domain-middleware');
const rerouter = customDomainReroute.setup({
  onRouted: (originalPath, routedPath) => {
    // do something here
  }
});

app.use(rerouter);

Dependencies (0)

    Dev Dependencies (3)

    Package Sidebar

    Install

    npm i @turinggroup/serverless-express-custom-domain-middleware

    Weekly Downloads

    494

    Version

    1.1.0

    License

    ISC

    Unpacked Size

    21 kB

    Total Files

    9

    Last publish

    Collaborators

    • ajstocchetti
    • bigdeddu