Add Support & Social module to dashboard sidebar

This commit is contained in:
2026-01-05 21:11:55 +01:00
parent 7d8d050db0
commit c84492cd7e
8 changed files with 419 additions and 0 deletions

View File

@@ -0,0 +1,15 @@
import { NextResponse } from 'next/server';
import { getTwitchStatus } from '@/lib/twitch';
export async function GET(request: Request) {
const { searchParams } = new URL(request.url);
const username = searchParams.get('username');
if (!username) {
return NextResponse.json({ error: 'Username is required' }, { status: 400 });
}
const isLive = await getTwitchStatus(username);
return NextResponse.json({ isLive });
}