Skip to content

Commit

Permalink
Redirect /api -> api-docs and update internal links
Browse files Browse the repository at this point in the history
  • Loading branch information
Bryce Kalow committed Mar 30, 2022
1 parent f7bfba3 commit 18f1055
Show file tree
Hide file tree
Showing 4 changed files with 7 additions and 7 deletions.
4 changes: 2 additions & 2 deletions website/content/api-docs/allocations.mdx
Original file line number Diff line number Diff line change
Expand Up @@ -762,8 +762,8 @@ It opens a WebSocket to transmit input to and output from the command.
| `WebSocket` | `/v1/client/allocation/:alloc_id/exec` | WebSocket JSON streams |

The table below shows this endpoint's support for
[blocking queries](/api/index.html#blocking-queries) and
[required ACLs](/api/index.html#acls).
[blocking queries](/api-docs#blocking-queries) and
[required ACLs](/api-docs#acls).

| Blocking Queries | ACL Required |
| ---------------- | -------------------------------------------------------------------------------------------- |
Expand Down
4 changes: 0 additions & 4 deletions website/next.config.js
Original file line number Diff line number Diff line change
@@ -1,6 +1,5 @@
const withHashicorp = require('@hashicorp/platform-nextjs-plugin')
const redirects = require('./redirects')
const rewrites = require('./rewrites')

module.exports = withHashicorp({
defaultLayout: true,
Expand All @@ -9,9 +8,6 @@ module.exports = withHashicorp({
redirects() {
return redirects
},
rewrites() {
return rewrites
},
svgo: {
plugins: [
{
Expand Down
5 changes: 5 additions & 0 deletions website/redirects.js
Original file line number Diff line number Diff line change
Expand Up @@ -1376,4 +1376,9 @@ module.exports = [
destination: '/plugins/drivers/remote',
permanent: true,
},
{
source: '/api/:path*',
destination: '/api-docs/:path*',
permanent: true,
},
]
1 change: 0 additions & 1 deletion website/rewrites.js

This file was deleted.

0 comments on commit 18f1055

Please sign in to comment.