(raceId: string)
| 5 | const RACE_STATUS_API = "/api/races/:id/status"; |
| 6 | |
| 7 | export const fetchRaceStatus = async (raceId: string) => { |
| 8 | const url = serverUrl + RACE_STATUS_API.replace(":id", raceId); |
| 9 | return fetch(url, { |
| 10 | credentials: "include", |
| 11 | }).then((resp) => resp.json()); |
| 12 | }; |
| 13 | |
| 14 | export const ONLINE_COUNT_API = serverUrl + "/api/races/online"; |
| 15 |
no outgoing calls
no test coverage detected