()
| 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 () => { |