Skip to content

Commit 413ef30

Browse files
committed
update scripts/generate-{api-docs,routes}
1 parent ae0eb48 commit 413ef30

File tree

2 files changed

+2
-6
lines changed

2 files changed

+2
-6
lines changed

scripts/generate-api-docs.js

Lines changed: 1 addition & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -12,9 +12,7 @@ const docsPath = resolvePath('docs')
1212
const ROUTES = require('../src/plugins/register-api-endpoints/routes.json')
1313

1414
// 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-
}
15+
const URL_ALIASES = {}
1816

1917
const usernameRegex = /\/\{username\}\//
2018

scripts/generate-routes/set-url.js

Lines changed: 1 addition & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,4 @@
1-
const URL_CORRECTION = {
2-
'/users/{username}/ssh-keys/': '/users/{username}/ssh-keys/{key_id}',
3-
}
1+
const URL_CORRECTION = {}
42

53
const setUrl = (endpointObject, url) => {
64
endpointObject.url = URL_CORRECTION[url] || url

0 commit comments

Comments
 (0)