MCPcopy Create free account
hub / github.com/Fibi66/FeiControl / GET

Function GET

src/app/api/git/route.ts:117–126  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

115}
116
117export 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
128const ALLOWED_REPOS = [WORKSPACE + '/mission-control', WORKSPACE];
129

Callers

nothing calls this directly

Calls 1

getReposFunction · 0.85

Tested by

no test coverage detected