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:
parent
d751b47a5f
commit
9be591a067
@ -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`
|
||||
}
|
||||
|
||||
|
Loading…
x
Reference in New Issue
Block a user