1
2
3
4
5
6
7
8
9
10
import { fetch } from "https://esm.town/v/std/fetch";
export default async function proxy(req: Request) {
const resp = await fetch(
"http://api.quotable.io/quotes/random?limit=1",
);
const json = await resp.json();
console.log(json);
return Response.json(json);
}