1
0
mirror of https://github.com/oceanprotocol/ocean.js.git synced 2024-11-26 20:39:05 +01:00

fix encrypt method in provider

This commit is contained in:
Ahmed Ali 2020-06-24 18:01:16 +02:00
parent d751b47a5f
commit 9be591a067

View File

@ -2,7 +2,7 @@ import Account from '../ocean/Account'
import { noZeroX } from '../utils'
import { Instantiable, InstantiableConfig } from '../Instantiable.abstract'
const apiPath = '/api/v1/service/'
const apiPath = '/api/v1/services/'
/**
* Provides an interface for provider service.
@ -37,6 +37,10 @@ export class Provider extends Instantiable {
}
public getEncryptEndpoint() {
return `${this.url}${apiPath}/encrypt`
}
public getPublishEndpoint() {
return `${this.url}${apiPath}/publish`
}