()
| 115 | } |
| 116 | |
| 117 | export async function GET() { |
| 118 | try { |
| 119 | const repos = await getRepos(); |
| 120 | const statuses = await Promise.all(repos.map(getRepoStatus)); |
| 121 | return NextResponse.json({ repos: statuses, total: statuses.length }); |
| 122 | } catch (error) { |
| 123 | console.error('[git] Error:', error); |
| 124 | return NextResponse.json({ error: 'Failed to get repos' }, { status: 500 }); |
| 125 | } |
| 126 | } |
| 127 | |
| 128 | const ALLOWED_REPOS = [WORKSPACE + '/mission-control', WORKSPACE]; |
| 129 |
nothing calls this directly
no test coverage detected