passing address to saveRequest

This commit is contained in:
muerwre 2018-08-31 10:08:59 +07:00
parent 47e4f4a97d
commit fc1bac528a
5 changed files with 12 additions and 3 deletions

View file

@ -33,7 +33,9 @@ export const getStoredMap = ({ name }) => axios.get(API.GET_MAP, {
}
}).then(result => (result && result.data && result.data.data && result.data.owner && { ...result.data.data, owner: result.data.owner }));
export const postMap = ({ title, address, route, stickers, id, token }) => axios.post(API.POST_MAP, {
export const postMap = ({
title, address, route, stickers, id, token
}) => axios.post(API.POST_MAP, {
action: 'store',
title,
address,