Skip to content

Commit bc76c59

Browse files
committed
Add Freebuff live usage dashboard
1 parent c299104 commit bc76c59

4 files changed

Lines changed: 566 additions & 0 deletions

File tree

Lines changed: 15 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,15 @@
1+
import { NextResponse } from 'next/server'
2+
3+
import { getFreebuffLiveStats } from '@/server/live-stats'
4+
5+
export const dynamic = 'force-dynamic'
6+
export const revalidate = 0
7+
8+
export async function GET() {
9+
const stats = await getFreebuffLiveStats()
10+
return NextResponse.json(stats, {
11+
headers: {
12+
'Cache-Control': 'no-store, max-age=0',
13+
},
14+
})
15+
}

0 commit comments

Comments
 (0)