mirror of
https://github.com/ichsankurnia/hats-app.git
synced 2026-12-06 11:46:27 +00:00
initial commit for new hats app
This commit is contained in:
@@ -0,0 +1,8 @@
|
||||
import { NextRequest, NextResponse } from 'next/server'
|
||||
import { revalidateTag } from 'next/cache'
|
||||
|
||||
export async function GET(request: NextRequest) {
|
||||
const tag = request.nextUrl.searchParams.get('tag')
|
||||
revalidateTag(tag!)
|
||||
return NextResponse.json({ revalidated: true, now: Date.now() })
|
||||
}
|
||||
Reference in New Issue
Block a user