(uri: string, options?: RequestInit)
| 37 | |
| 38 | /** Lightweight fetch() wrapper for CE API urls */ |
| 39 | const request = async <R>(uri: string, options?: RequestInit): Promise<TypedResponse<R>> => |
| 40 | fetch(`${window.location.origin}${window.httpRoot}api${uri}`, { |
| 41 | ...options, |
| 42 | credentials: 'include', |
| 43 | headers: { |
| 44 | ...options?.headers, |
| 45 | Accept: 'application/json', |
| 46 | }, |
| 47 | }); |
| 48 | |
| 49 | /** GET /api/asm/:arch/:instruction */ |
| 50 | export const getAssemblyDocumentation = async (options: AssemblyDocumentationRequest) => |
no outgoing calls
no test coverage detected