Chris Grimmett d60c6ac3bb init
2024-01-20 08:16:14 -08:00

11 lines
239 B
TypeScript

import { NextResponse } from 'next/server'
export async function GET() {
const res = await fetch('https://dummyjson.com/posts', {
next: { revalidate: 60 },
});
const data = await res.json();
return NextResponse.json(data);
}