feat: add any response to adapter fetch
This commit is contained in:
@@ -33,7 +33,7 @@ export class HttpAdapter implements RelayAdapter {
|
|||||||
return json;
|
return json;
|
||||||
}
|
}
|
||||||
|
|
||||||
async fetch({ method, url, query, body }: RelayRESTInput) {
|
async fetch({ method, url, query, body }: RelayRESTInput): Promise<any> {
|
||||||
const res = await fetch(`${url}${query}`, {
|
const res = await fetch(`${url}${query}`, {
|
||||||
method,
|
method,
|
||||||
headers: { "x-relay-type": "rest", "content-type": "application/json" },
|
headers: { "x-relay-type": "rest", "content-type": "application/json" },
|
||||||
|
|||||||
Reference in New Issue
Block a user