${apiDetail.name}
${apiDetail.description}
${apiDetail.arguments.length ? `Arguments
- ${renderArguments(apiDetail.arguments).join("")}
Returns
${dedent(apiDetailsReturns)}
"use strict"; import asyncHtml from "choo-async/html"; import dedent from "dedent"; import redirectOr404 from "../modules/redirectOr404"; import headerBlockchain from "../components/api/header-blockchain"; import headerSdk from "../components/api/header-sdk"; const fetch = require("make-fetch-happen").defaults({ cacheManager: "./cache" }); module.exports = exports = state => parseApiFile(state.params.wildcard).then(response => { /* state.lbry = { description: "This is the API page for LBRY.tech", "og:image": "/assets/media/images/carlsagan2.jpg", "og:image:height": 300, "og:image:width": 400 }; */ return asyncHtml`
${apiDetail.description}
${apiDetail.arguments.length ? `${dedent(apiDetailsReturns)}
// example(s) for ${apiDetail.name} to come later