mirror of
https://github.com/oceanprotocol-archive/squid-js.git
synced 2024-02-02 15:31:51 +01:00
Fix brizo purchaseEndpoint.
This commit is contained in:
parent
981bb8346e
commit
968583e2dd
@ -12,7 +12,7 @@ export default class Brizo {
|
|||||||
}
|
}
|
||||||
|
|
||||||
public getPurchaseEndpoint() {
|
public getPurchaseEndpoint() {
|
||||||
return `${this.url}${apiPath}/access/purchase?`
|
return `${this.url}${apiPath}/access/initialize`
|
||||||
}
|
}
|
||||||
|
|
||||||
public getConsumeEndpoint() {
|
public getConsumeEndpoint() {
|
||||||
@ -21,7 +21,7 @@ export default class Brizo {
|
|||||||
|
|
||||||
public getComputeEndpoint(pubKey: string, serviceId: string, algo: string, container: string) {
|
public getComputeEndpoint(pubKey: string, serviceId: string, algo: string, container: string) {
|
||||||
// tslint:disable-next-line
|
// tslint:disable-next-line
|
||||||
return `${this.url}${apiPath}/compute?pubKey=${pubKey}&serviceId=${serviceId}&algo=${algo}&container=${container}"`
|
return `${this.url}${apiPath}/compute`
|
||||||
}
|
}
|
||||||
|
|
||||||
public async initializeServiceAgreement(
|
public async initializeServiceAgreement(
|
||||||
@ -42,7 +42,7 @@ export default class Brizo {
|
|||||||
return WebServiceConnectorProvider
|
return WebServiceConnectorProvider
|
||||||
.getConnector()
|
.getConnector()
|
||||||
.post(
|
.post(
|
||||||
`${this.url}${apiPath}/access/initialize`,
|
this.getPurchaseEndpoint(),
|
||||||
decodeURI(JSON.stringify(args)),
|
decodeURI(JSON.stringify(args)),
|
||||||
)
|
)
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user