move to koa and add user pages

This commit is contained in:
ntr committed 2022-08-07 14:27:13 +10:00
1 parent b4114a2440
commit bd32044427
11 files changed
+1079 -107

No files matched your search

+7
View File
@@ -5,6 +5,13 @@ const actions = store => ({
const { data: bundles } = await axios.get('http://localhost:41337/bundles');
return { bundles };
},
getUserOffers: async (state, userId) => {
store.setState({ offers: [] });
const { data: offers } = await axios.get(`http://localhost:41337/user/${userId}/offers`);
console.log(userId, offers);
return { offers };
},
});
export default actions;