Files
supabase/apps/docs/internals/files/api.mjs
2024-01-03 18:54:23 +01:00

14 lines
349 B
JavaScript

import sections from '../../spec/common-api-sections.json' assert { type: 'json' }
import { flattenSections } from '../helpers.mjs'
const flatSections = flattenSections(sections)
export function generateAPIPages() {
let apiPages = []
flatSections.map((section) => {
apiPages.push(`reference/api/${section.slug}`)
})
return apiPages
}