5 lines
142 B
TypeScript
5 lines
142 B
TypeScript
export async function getJson(path: string) {
|
|
let response = await fetch(path);
|
|
let users = await response.json();
|
|
return users;
|
|
} |