1
0
mirror of https://github.com/oceanprotocol-archive/squid-js.git synced 2024-02-02 15:31:51 +01:00

Merge pull request #75 from oceanprotocol/defect/brizo-purchase-endpoint

Fix brizo purchaseEndpoint.
This commit is contained in:
Sebastian Gerske 2018-12-12 21:16:42 +01:00 committed by GitHub
commit e1b1642907
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -12,7 +12,7 @@ export default class Brizo {
}
public getPurchaseEndpoint() {
return `${this.url}${apiPath}/access/purchase?`
return `${this.url}${apiPath}/access/initialize`
}
public getConsumeEndpoint() {
@ -21,7 +21,7 @@ export default class Brizo {
public getComputeEndpoint(pubKey: string, serviceId: string, algo: string, container: string) {
// 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(
@ -42,7 +42,7 @@ export default class Brizo {
return WebServiceConnectorProvider
.getConnector()
.post(
`${this.url}${apiPath}/access/initialize`,
this.getPurchaseEndpoint(),
decodeURI(JSON.stringify(args)),
)