diff --git a/backend/src/poap/index.js b/backend/src/poap/index.js index 1b49d57..5b7f8c9 100644 --- a/backend/src/poap/index.js +++ b/backend/src/poap/index.js @@ -3,7 +3,8 @@ import axios from 'axios'; class POAP { static async fetchEvents() { - const response = await axios.get('https://api.poap.tech/events'); + const response = await axios.get('https://api-event.poap.xyz'); + return response.data; } diff --git a/frontend/src/store/poap/actions.js b/frontend/src/store/poap/actions.js index c2c0427..8517533 100644 --- a/frontend/src/store/poap/actions.js +++ b/frontend/src/store/poap/actions.js @@ -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.tech/events'); + const events = await jsonFetch('https://api-event.poap.xyz'); + commit('setEvents', events); }