add api -> api-docs redirect (#14579)

This commit is contained in:
Bryce Kalow 2022-03-18 12:40:04 -05:00 committed by GitHub
parent 92b97b19ed
commit 07044fd701
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with 5 additions and 0 deletions

View File

@ -762,6 +762,11 @@ module.exports = [
destination: '/docs/what-is-vault', destination: '/docs/what-is-vault',
permanent: true, permanent: true,
}, },
{
source: '/api/:path*',
destination: '/api-docs/:path*',
permanent: true
},
// disallow '.html' or '/index.html' in favor of cleaner, simpler paths // disallow '.html' or '/index.html' in favor of cleaner, simpler paths
{ source: '/:path*/index', destination: '/:path*', permanent: true }, { source: '/:path*/index', destination: '/:path*', permanent: true },
{ source: '/:path*.html', destination: '/:path*', permanent: true }, { source: '/:path*.html', destination: '/:path*', permanent: true },