mirror of
https://github.com/xmanrui/OpenClaw-bot-review.git
synced 2026-08-14 00:47:49 +00:00
- 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)
17 lines
485 B
TypeScript
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 });
|
|
}
|
|
}
|