diff --git a/app/views/api.js b/app/views/api.js index 15fadf4..2029263 100644 --- a/app/views/api.js +++ b/app/views/api.js @@ -15,7 +15,7 @@ import headerSdk from "~component/api/header-sdk"; import redirects from "~data/redirects.json"; const blockchainApi = "https://cdn.jsdelivr.net/gh/lbryio/lbrycrd@master/contrib/devtools/generated/api_v1.json"; -const cacheBump = new Map(); +const cache = new Map(); const sdkApi = "https://cdn.jsdelivr.net/gh/lbryio/lbry@master/docs/api.json"; @@ -182,12 +182,6 @@ function createSdkContent(apiDetails) { } function createSdkContentSections(sectionTitle, sectionDescription, sectionDetails) { - /* -

${sectionTitle}

-

${sectionDescription}

-
- */ - return `

${sectionDetails.name}

@@ -245,7 +239,7 @@ async function parseApiFile(urlSlug) { if (!apiFileLink) return Promise.reject(new Error("Failed to fetch API docs")); - const response = await got(apiFileLink, { cache: cacheBump, json: true }); + const response = await got(apiFileLink, { cache, json: true }); try { return response.body;