Skip to content

Commit

Permalink
✨ Feature: Use events from s3 (#85)
Browse files Browse the repository at this point in the history
* Backend - Consume events from s3 bucket

* Front - Consume events from s3 bucket

Co-authored-by: Nicolas de Leon <[email protected]>
  • Loading branch information
nicolasdeleon and Nicolas de Leon authored May 2, 2022
1 parent 33b0181 commit 48294c6
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 2 deletions.
3 changes: 2 additions & 1 deletion backend/src/poap/index.js
Original file line number Diff line number Diff line change
Expand Up @@ -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;
}

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.tech/events');
const events = await jsonFetch('https://api-event.poap.xyz');

commit('setEvents', events);
}

Expand Down

0 comments on commit 48294c6

Please sign in to comment.