MCPcopy Create free account
hub / github.com/Bitbox-Connect/Bitbox / getGlobalProjects

Function getGlobalProjects

client/src/context/ProjectState.jsx:14–24  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

12
13 // Get All Globally Project
14 const getGlobalProjects = async () => {
15 // API CALL - Fetch All Global Projects
16 const response = await fetch(`${VITE_SERVER_PORT}/api/projects/fetchallglobalprojects`, {
17 method: "GET",
18 headers: {
19 "Content-Type": "application/json"
20 }
21 });
22 const json = await response.json();
23 setGlobalProjects(json.reverse());
24 }
25
26 // Get All Your Project
27 const getUserProjects = async () => {

Callers 1

fetchDataFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected