()
| 5 | |
| 6 | /** 列出当前数据根(KB_ROOT)下的所有 workspace 与当前所选,供顶栏 WorkspaceSwitcher 用。 */ |
| 7 | export async function GET() { |
| 8 | return NextResponse.json({ |
| 9 | workspaces: listWorkspaces(), |
| 10 | current: resolveWorkspace(), |
| 11 | }); |
| 12 | } |
nothing calls this directly
no test coverage detected