Publish updated WeChat Radar

This commit is contained in:
joeseesun
2026-05-26 09:10:04 +08:00
parent 8abb29e13e
commit de7ec99fed
44 changed files with 2900 additions and 746 deletions
+18
View File
@@ -0,0 +1,18 @@
import { NextResponse } from 'next/server';
import { db } from '@/lib/db';
export const dynamic = 'force-dynamic';
export async function GET() {
const rows = db()
.prepare(
`SELECT date, COUNT(*) AS count
FROM messages
GROUP BY date
ORDER BY date DESC
LIMIT 90`,
)
.all() as Array<{ date: string; count: number }>;
return NextResponse.json({ ok: true, dates: rows });
}