Skip to content

Commit

Permalink
fix: Add the /api path to the places API URL (#590)
Browse files Browse the repository at this point in the history
  • Loading branch information
LautaroPetaccio authored Nov 23, 2023
1 parent 9569fb6 commit b9948b4
Show file tree
Hide file tree
Showing 4 changed files with 5 additions and 5 deletions.
4 changes: 2 additions & 2 deletions src/api/Places.ts
Original file line number Diff line number Diff line change
Expand Up @@ -45,7 +45,7 @@ export type AggregatePlaceAttributes = PlaceAttributes & {
}

export default class Places extends API {
static Url = env("PLACES_API_URL", `https://places.decentraland.org`)
static Url = env("PLACES_API_URL", `https://places.decentraland.org/api`)

static Cache = new Map<string, Places>()

Expand All @@ -58,7 +58,7 @@ export default class Places extends API {
}

static get() {
return this.from(`${env("PLACES_API_URL", this.Url)}/api`)
return this.from(env("PLACES_API_URL", this.Url))
}

static parsePlace(place: AggregatePlaceAttributes): AggregatePlaceAttributes {
Expand Down
2 changes: 1 addition & 1 deletion src/config/dev.json
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,7 @@
"GATSBY_SEGMENT_KEY": "a4h4BC4dL1v7FhIQKKuPHEdZIiNRDVhc",
"GATSBY_WEB_PUSH,_KEY": "BDcSrhptgGRYliwF8EtHUjKS7zwUAb7xiKZn2wsGfqDpWhXld5844vAKzzX6X8OvmcjGEfuoHvnYVKoijpL1D_w",
"GATSBY_PLACES_URL": "https://decentraland.zone/places",
"GATSBY_PLACES_API_URL": "https://places.decentraland.zone",
"GATSBY_PLACES_API_URL": "https://places.decentraland.zone/api",
"GATSBY_PROFILE_SITE_URL": "https://decentraland.org/profile",
"GATSBY_SSO_URL": "https://id.decentraland.zone"
}
2 changes: 1 addition & 1 deletion src/config/local.json
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,7 @@
"GATSBY_SEGMENT_KEY": "a4h4BC4dL1v7FhIQKKuPHEdZIiNRDVhc",
"GATSBY_WEB_PUSH,_KEY": "BDcSrhptgGRYliwF8EtHUjKS7zwUAb7xiKZn2wsGfqDpWhXld5844vAKzzX6X8OvmcjGEfuoHvnYVKoijpL1D_w",
"GATSBY_PLACES_URL": "https://places.decentraland.org",
"GATSBY_PLACES_API_URL": "https://places.decentraland.org",
"GATSBY_PLACES_API_URL": "https://places.decentraland.org/api",
"GATSBY_PROFILE_SITE_URL": "https://profile.decentraland.org",
"GATSBY_SSO_URL": "https://id.decentraland.zone",
"GATSBY_ADMIN_ADDRESSES": "0xd9B96B5dC720fC52BedE1EC3B40A930e15F70Ddd"
Expand Down
2 changes: 1 addition & 1 deletion src/config/prod.json
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,7 @@
"GATSBY_SEGMENT_KEY": "d4skMcpfGrW2tP8FGTDtCIetsp3W7Boo",
"GATSBY_WEB_PUSH_KEY": "BDcSrhptgGRYliwF8EtHUjKS7zwUAb7xiKZn2wsGfqDpWhXld5844vAKzzX6X8OvmcjGEfuoHvnYVKoijpL1D_w",
"GATSBY_PLACES_URL": "https://places.decentraland.org",
"GATSBY_PLACES_API_URL": "https://places.decentraland.org",
"GATSBY_PLACES_API_URL": "https://places.decentraland.org/api",
"GATSBY_PROFILE_SITE_URL": "https://profile.decentraland.org",
"GATSBY_SSO_URL": "https://id.decentraland.org"
}

0 comments on commit b9948b4

Please sign in to comment.