MCPcopy Index your code
hub / github.com/callstack/agent-device / isSupportedDaemonRoute

Function isSupportedDaemonRoute

src/remote/daemon-proxy.ts:285–291  ·  view source on GitHub ↗
(route: string, method: string | undefined)

Source from the content-addressed store, hash-verified

283}
284
285function isSupportedDaemonRoute(route: string, method: string | undefined): boolean {
286 if (route === '/rpc') return method === 'POST';
287 if (isSupportedUploadRoute(route, method)) return true;
288 if (route === '/artifacts' || route === '/artifacts/') return method === 'GET';
289 if (route.startsWith('/artifacts/')) return method === 'GET';
290 return false;
291}
292
293function isSupportedUploadRoute(route: string, method: string | undefined): boolean {
294 if (route === '/upload') return method === 'POST';

Callers 1

handleProxyRequestFunction · 0.85

Calls 2

isSupportedUploadRouteFunction · 0.85
startsWithMethod · 0.80

Tested by

no test coverage detected