mirror of
https://github.com/hanzoai/next.js.git
synced 2026-10-30 14:46:38 +00:00
9 lines
189 B
TypeScript
9 lines
189 B
TypeScript
import { NextResponse } from 'next/server'
|
|
import { revalidatePath } from 'next/cache'
|
|
|
|
export async function GET() {
|
|
revalidatePath('/')
|
|
|
|
return NextResponse.json({ success: true })
|
|
}
|