feat(coding): add core host api composition
This commit is contained in:
@@ -6,7 +6,9 @@
|
||||
export function shouldUseLoopbackHostApi(path: string, method = 'GET'): boolean {
|
||||
const normalizedMethod = method.toUpperCase();
|
||||
const pathname = path.split('?', 1)[0] || path;
|
||||
if (pathname === '/api/events' || pathname === '/api/opencode/events') return true;
|
||||
if (pathname === '/api/events'
|
||||
|| pathname === '/api/opencode/events'
|
||||
|| pathname === '/api/coding/events') return true;
|
||||
if (pathname.startsWith('/api/ai-proxy/')) return true;
|
||||
if (pathname.includes('/events') && pathname.startsWith('/api/image-workspace/')) return true;
|
||||
if (
|
||||
|
||||
Reference in New Issue
Block a user