5 lines
130 B
TypeScript
5 lines
130 B
TypeScript
|
export async function fetchExample(): Promise<string> {
|
||
|
const response = await fetch("/api");
|
||
|
return await response.text();
|
||
|
}
|