mirror of
https://github.com/oceanprotocol/docs.git
synced 2024-11-26 19:49:26 +01:00
Issue-#850: Aquarius rest api
This commit is contained in:
parent
26f7f29b37
commit
cee06030d8
@ -180,6 +180,7 @@ exports.createPages = ({ graphql, actions }) => {
|
|||||||
markdowns,
|
markdowns,
|
||||||
'provider'
|
'provider'
|
||||||
)[0].node
|
)[0].node
|
||||||
|
|
||||||
await createRestApiPage(
|
await createRestApiPage(
|
||||||
createPage,
|
createPage,
|
||||||
providerRestApi,
|
providerRestApi,
|
||||||
@ -327,7 +328,8 @@ const createRestApiPage = async (createPage, node, slug) => {
|
|||||||
}
|
}
|
||||||
|
|
||||||
const getRestApiPageFromMarkdownList = (markdownList, string) => {
|
const getRestApiPageFromMarkdownList = (markdownList, string) => {
|
||||||
return markdownList.filter(({ node }) => {
|
return markdownList.filter(
|
||||||
return node.frontmatter.app === string && node.frontmatter.slug === 'API.md'
|
({ node }) =>
|
||||||
})
|
node.frontmatter.app === string && node.frontmatter.slug === 'API.md'
|
||||||
|
)
|
||||||
}
|
}
|
||||||
|
Loading…
Reference in New Issue
Block a user