mirror of
https://github.com/oceanprotocol-archive/squid-js.git
synced 2024-02-02 15:31:51 +01:00
15 lines
298 B
TypeScript
15 lines
298 B
TypeScript
|
import fetch from "node-fetch"
|
||
|
|
||
|
export default class AquariusConnector {
|
||
|
|
||
|
public post(url, payload) {
|
||
|
return fetch(url, {
|
||
|
method: "POST",
|
||
|
body: payload,
|
||
|
headers: {
|
||
|
"Content-type": "application/json",
|
||
|
},
|
||
|
})
|
||
|
}
|
||
|
}
|