add api -> api-docs redirect (#14579)
This commit is contained in:
parent
92b97b19ed
commit
07044fd701
|
@ -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 },
|
||||||
|
|
Loading…
Reference in New Issue