新增 競賽建立、評審建立、團隊建立

This commit is contained in:
2025-09-15 13:32:30 +08:00
parent b85a9ce95e
commit 31ffaa1974
31 changed files with 5163 additions and 455 deletions

View File

@@ -0,0 +1,26 @@
// =====================================================
// 團隊統計 API
// =====================================================
import { NextResponse } from 'next/server';
import { TeamService } from '@/lib/services/database-service';
export async function GET() {
try {
const stats = await TeamService.getTeamStats();
return NextResponse.json({
success: true,
message: '團隊統計獲取成功',
data: stats
});
} catch (error) {
console.error('獲取團隊統計失敗:', error);
return NextResponse.json({
success: false,
message: '獲取團隊統計失敗',
error: error instanceof Error ? error.message : '未知錯誤'
}, { status: 500 });
}
}