Redirecting you to ${redirectUrl}
${apiDetail.name}
${apiDetail.description}
${apiDetail.arguments.length ? `Arguments
- ${renderArguments(apiDetail.arguments).join("")}
Returns
${dedent(apiDetailsReturns)}
"use strict"; // I M P O R T S import asyncHtml from "choo-async/html"; import dedent from "dedent"; // U T I L S import headerBlockchain from "../components/api/header-blockchain"; import headerSdk from "../components/api/header-sdk"; import redirects from "../data/redirects.json"; const fetch = require("make-fetch-happen").defaults({ cacheManager: "./cache" }); // E X P O R T export default async(state) => { // How to set custom metadata for this page // 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 // }; try { const apiResponse = await parseApiFile(state.params.wildcard); return asyncHtml`
Redirecting you to ${redirectUrl}
${apiDetail.description}
${apiDetail.arguments.length ? `${dedent(apiDetailsReturns)}
// example(s) for ${apiDetail.name} to come later