Skip to content
15 changes: 15 additions & 0 deletions freebuff/web/src/app/api/live/route.ts
Original file line number Diff line number Diff line change
@@ -0,0 +1,15 @@
import { NextResponse } from 'next/server'

import { getFreebuffLiveStats } from '@/server/live-stats'

export const dynamic = 'force-dynamic'
export const revalidate = 0

export async function GET() {
const stats = await getFreebuffLiveStats()
return NextResponse.json(stats, {
headers: {
'Cache-Control': 'no-store, max-age=0',
},
})
}
Loading
Loading