MCPcopy Create free account
hub / github.com/api-platform/website / getAllConferenceSlugs

Function getAllConferenceSlugs

pwa/api/con/conferences.ts:42–48  ·  view source on GitHub ↗
(edition = "2022")

Source from the content-addressed store, hash-verified

40};
41
42export const getAllConferenceSlugs = async (edition = "2022") => {
43 return (
44 await readdir(path.join(process.cwd(), `data/con/${edition}/conferences`))
45 )
46 .filter((el) => path.extname(el) === ".md")
47 .map((slug: string) => slug.replace(/\.md$/, ""));
48};
49
50export const getConferenceData = memoizeAsync(
51 async (

Callers 3

getAllConRoutesFunction · 0.90
getConferencesFunction · 0.90
generateStaticParamsFunction · 0.90

Calls

no outgoing calls

Tested by

no test coverage detected