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

Function getAllEditionPictures

pwa/api/con/editions.ts:3–9  ·  view source on GitHub ↗
(edition = "2022")

Source from the content-addressed store, hash-verified

1import { readdir } from "node:fs/promises";
2
3export const getAllEditionPictures = async (edition = "2022") => {
4 const picturesSlugs = await readdir(`public/images/con/${edition}/review`);
5
6 return picturesSlugs
7 .filter((el) => el.match(/(pic-[^s].+).jpg/))
8 .map((fileName) => `/images/con/${edition}/review/${fileName}`);
9};

Callers 8

PageFunction · 0.90
PageFunction · 0.90
PageFunction · 0.90
PageFunction · 0.90
PageFunction · 0.90
PageFunction · 0.90
PageFunction · 0.90
PageFunction · 0.90

Calls

no outgoing calls

Tested by

no test coverage detected