Files
Adv-WebDev-W3-part1/app/api/revalidate/route.ts
T
2026-10-04 12:04:52 +01:00

8 lines
229 B
TypeScript

import { revalidateTag } from "next/cache";
import { NextResponse } from "next/server";
export async function GET() {
revalidateTag("weather-data", "max");
return NextResponse.json({ revalidated: true, now: Date.now() });
}