move to koa and add user pages
This commit is contained in:
1 parent
b4114a2440
commit
bd32044427
11 files changed
+1079
-107
No files matched your search
@@ -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;
|
||||
Reference in new issue
Block a user