Add ability to transform query params in redirct service, run [Endpoint GitHubReleaseRedirect SensioLabs VSO] (#3125)

* feat(redirector): added transformQueryParams to redirector

* refactor: renamed to transformPath in redirector

* Rename targetUrl to targetPath

Co-Authored-By: calebcartwright <calebcartwright@users.noreply.github.com>

* feat(redirector): handle param conflicts
This commit is contained in:
Caleb Cartwright
2019-03-04 18:11:37 -06:00
committed by GitHub
parent c7deb5a0d1
commit 726830f067
8 changed files with 136 additions and 22 deletions

View File

@@ -8,6 +8,6 @@ module.exports = redirector({
base: 'github/release',
pattern: ':user/:repo/all',
},
target: ({ user, repo }) => `/github/release-pre/${user}/${repo}`,
transformPath: ({ user, repo }) => `/github/release-pre/${user}/${repo}`,
dateAdded: new Date('2019-02-24'),
})