1
0
mirror of https://github.com/oceanprotocol/market.git synced 2024-12-02 05:57:29 +01:00

update 3box url (#298)

This commit is contained in:
mihaisc 2020-12-10 16:04:35 +02:00 committed by GitHub
parent 960c5b3234
commit 072a4475eb
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -4,7 +4,7 @@ import jwtDecode from 'jwt-decode'
import { Logger } from '@oceanprotocol/lib'
// https://docs.3box.io/api/rest-api
const apiUri = 'https://market-stats.oceanprotocol.com/api'
const apiUri = 'https://3box.oceanprotocol.com'
const ipfsUrl = 'https://ipfs.oceanprotocol.com'
function decodeProof(proofJWT: string) {
@ -77,7 +77,7 @@ export default async function get3BoxProfile(
): Promise<Profile> {
try {
const response: AxiosResponse<ResponseData3Box> = await axios(
`${apiUri}/profile?address=${accountId}`,
`${apiUri}/profile/${accountId}`,
{ cancelToken }
)