(route: string, method: string | undefined)
| 283 | } |
| 284 | |
| 285 | function 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 | |
| 293 | function isSupportedUploadRoute(route: string, method: string | undefined): boolean { |
| 294 | if (route === '/upload') return method === 'POST'; |
no test coverage detected