15 lines
302 B
TypeScript
Executable File
15 lines
302 B
TypeScript
Executable File
import { getAmberVh } from "@/lib/api";
|
|
|
|
export async function GET() {
|
|
return new Response(
|
|
await fetch(
|
|
`https://gi.yatta.moe/api/v2/en/avatar?vh=${await getAmberVh()}`,
|
|
).then((e) => e.text()),
|
|
{
|
|
headers: {
|
|
"Content-Type": "application/json",
|
|
},
|
|
},
|
|
);
|
|
}
|