MCPcopy Create free account
hub / github.com/TimMcCool/scratchattach / fetchData

Function fetchData

website/source/js/loadCommunityProjects.js:1–5  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

1async function fetchData() {
2 const response = await fetch('/api/community_projects/');
3 const data = await response.json();
4 addItems(data);
5}
6
7// Function to add items to the DOM
8function addItems(items) {

Callers

nothing calls this directly

Calls 3

fetchFunction · 0.85
addItemsFunction · 0.85
jsonMethod · 0.80

Tested by

no test coverage detected