Skip to content

Commit

Permalink
Merge pull request #86 from poap-xyz/release/v1.0.1
Browse files Browse the repository at this point in the history
Release/v1.0.1
  • Loading branch information
alavarello authored Jul 5, 2022
2 parents 52cad5e + 48294c6 commit be7aaa7
Show file tree
Hide file tree
Showing 4 changed files with 7 additions and 5 deletions.
5 changes: 3 additions & 2 deletions backend/src/poap/index.js
Original file line number Diff line number Diff line change
Expand Up @@ -3,12 +3,13 @@ import axios from 'axios';
class POAP {

static async fetchEvents() {
const response = await axios.get('https://api.poap.xyz/events');
const response = await axios.get('https://api-event.poap.xyz');

return response.data;
}

static async fetchTokens(account) {
const response = await axios.get(`https://api.poap.xyz/actions/scan/${account}`);
const response = await axios.get(`https://api.poap.tech/actions/scan/${account}`);
return response.data;
}
}
Expand Down
2 changes: 1 addition & 1 deletion frontend/src/App.vue
Original file line number Diff line number Diff line change
Expand Up @@ -31,7 +31,7 @@ export default {
// Get user's POAP tokens
if (userAddress && JSON.parse(userAddress)) {
const poapTokensUrl = `https://api.poap.xyz/actions/scan/${JSON.parse(userAddress)}`;
const poapTokensUrl = `https://api.poap.tech/actions/scan/${JSON.parse(userAddress)}`;
tokens = await jsonFetch(poapTokensUrl);
}
this.$store.commit('user/setTokens', tokens);
Expand Down
3 changes: 2 additions & 1 deletion frontend/src/store/poap/actions.js
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,8 @@ const jsonFetch = (url) => fetch(url).then((res) => res.json());
* @notice GET list of all POAP events from the POAP API
*/
export async function getEvents({ commit }) {
const events = await jsonFetch('https://api.poap.xyz/events');
const events = await jsonFetch('https://api-event.poap.xyz');

commit('setEvents', events);
}

Expand Down
2 changes: 1 addition & 1 deletion frontend/src/store/user/actions.js
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@ const jsonFetch = (url) => fetch(url).then((res) => res.json());

export async function setEthereumData({ commit }, wallet) {
// Get user's POAP tokens
const poapTokensUrl = `https://api.poap.xyz/actions/scan/${wallet}`;
const poapTokensUrl = `https://api.poap.tech/actions/scan/${wallet}`;
const tokens = await jsonFetch(poapTokensUrl);

// Commit all state changes simultaneously to avoid UI inconsistencies
Expand Down

0 comments on commit be7aaa7

Please sign in to comment.