Ghost/ghost/express-dynamic-redirects
Naz c44e33b1f7 Simplified DynamicRedirectManager's constructor interface
refs https://linear.app/tryghost/issue/CORE-84/have-a-look-at-the-eggs-redirects-refactor-branch

- There is no need to pass in whole "urlUtils" instance to construct the class as all the class has to know is how to construct a "subdirectory URL" which can be a single function passed in instead of a vague object instance
2021-10-12 17:21:46 +02:00
..
lib Simplified DynamicRedirectManager's constructor interface 2021-10-12 17:21:46 +02:00
test Added handling for invalid redirect regexes 2021-10-12 17:21:46 +02:00
.eslintrc.js Added express-dynamic-redirects module (#337) 2021-09-29 12:01:40 +02:00
index.js Added express-dynamic-redirects module (#337) 2021-09-29 12:01:40 +02:00
LICENSE Added express-dynamic-redirects module (#337) 2021-09-29 12:01:40 +02:00
package.json Published new versions 2021-09-29 12:02:26 +02:00
README.md Added express-dynamic-redirects module (#337) 2021-09-29 12:01:40 +02:00

Express Dynamic Redirects

Install

npm install @tryghost/express-dynamic-redirects --save

or

yarn add @tryghost/express-dynamic-redirects

Usage

Develop

This is a mono repository, managed with lerna.

Follow the instructions for the top-level repo.

  1. git clone this repo & cd into it as usual
  2. Run yarn to install top-level dependencies.

Run

  • yarn dev

Test

  • yarn lint run just eslint
  • yarn test run lint and tests