This commit is contained in:
@@ -1,8 +1,12 @@
|
||||
import { getAmberVh } from "@/lib/api";
|
||||
|
||||
export const revalidate = 3600;
|
||||
|
||||
export async function GET() {
|
||||
return new Response(
|
||||
await fetch("https://gi.yatta.moe/api/v2/en/avatar").then((e) => e.text()),
|
||||
await fetch(`https://gi.yatta.moe/api/v2/en/avatar?vh=${await getAmberVh()}`).then((e) =>
|
||||
e.text(),
|
||||
),
|
||||
{
|
||||
headers: {
|
||||
"Content-Type": "application/json",
|
||||
|
||||
@@ -1,8 +1,10 @@
|
||||
import { getAmberVh } from "@/lib/api";
|
||||
|
||||
export const revalidate = 3600;
|
||||
|
||||
export async function GET() {
|
||||
return new Response(
|
||||
await fetch("https://gi.yatta.moe/api/v2/static/changelog").then((e) =>
|
||||
await fetch(`https://gi.yatta.moe/api/v2/static/changelog?vh=${await getAmberVh()}`).then((e) =>
|
||||
e.text(),
|
||||
),
|
||||
{
|
||||
|
||||
Reference in New Issue
Block a user