There was an error while loading. Please reload this page.
1 parent ae0eb48 commit 413ef30Copy full SHA for 413ef30
scripts/generate-api-docs.js
@@ -12,9 +12,7 @@ const docsPath = resolvePath('docs')
12
const ROUTES = require('../src/plugins/register-api-endpoints/routes.json')
13
14
// One of many workarounds for Bitbucket's faulty API Specification
15
-const URL_ALIASES = {
16
- '/users/{username}/ssh-keys/{key_id}': '/users/{username}/ssh-keys/',
17
-}
+const URL_ALIASES = {}
18
19
const usernameRegex = /\/\{username\}\//
20
scripts/generate-routes/set-url.js
@@ -1,6 +1,4 @@
1
-const URL_CORRECTION = {
2
- '/users/{username}/ssh-keys/': '/users/{username}/ssh-keys/{key_id}',
3
+const URL_CORRECTION = {}
4
5
const setUrl = (endpointObject, url) => {
6
endpointObject.url = URL_CORRECTION[url] || url
0 commit comments