Skip to content

Commit d7349f0

Browse files
author
catlog22
committed
feat: extend file routes to include explorer API endpoints
1 parent 97ef7e1 commit d7349f0

1 file changed

Lines changed: 3 additions & 2 deletions

File tree

ccw/src/core/server.ts

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -599,9 +599,10 @@ export async function startServer(options: ServerOptions = {}): Promise<http.Ser
599599
if (await handleSessionRoutes(routeContext)) return;
600600
}
601601

602-
// Files routes (/api/files, /api/file, /api/file-content, /api/update-claude-md)
602+
// Files routes (/api/files, /api/file, /api/file-content, /api/update-claude-md, /api/explorer/*)
603603
if (pathname === '/api/files' || pathname === '/api/file' ||
604-
pathname === '/api/file-content' || pathname === '/api/update-claude-md') {
604+
pathname === '/api/file-content' || pathname === '/api/update-claude-md' ||
605+
pathname.startsWith('/api/explorer/')) {
605606
if (await handleFilesRoutes(routeContext)) return;
606607
}
607608

0 commit comments

Comments
 (0)