Files
OpenClaw-bot-review/app/api/daily/route.ts
T
liweiqiu797-cmyk 38ed48aceb feat: add Agent workspace and Daily board pages
- Add /workspace page: Agent grid with real-time status
- Add /daily page: Daily report board with TTS playback
- Add new API routes: /api/agents, /api/daily
- Add new components: agent-card, agent-grid
- Add sidebar navigation for new pages
- Add i18n labels (zh-CN + en)
2026-03-31 17:00:33 +08:00

17 lines
485 B
TypeScript

// app/api/daily/route.ts
import { NextResponse } from 'next/server';
import { getTodayItems } from '@/lib/daily';
export async function GET() {
try {
const items = getTodayItems();
return NextResponse.json({
items,
date: new Date().toISOString().split('T')[0]
});
} catch (error) {
console.error('Failed to get daily items:', error);
return NextResponse.json({ items: [], date: new Date().toISOString().split('T')[0] }, { status: 500 });
}
}