mirror of
https://github.com/muerwre/orchidmap-front.git
synced 2025-04-25 02:56:41 +07:00
frontend is_starred and description support
This commit is contained in:
parent
a4b620471a
commit
c040e33a8a
11 changed files with 103 additions and 26 deletions
|
@ -21,6 +21,7 @@ interface IPostMap {
|
|||
distance: IRootState['distance'],
|
||||
provider: IRootState['provider'],
|
||||
is_public: IRootState['is_public'],
|
||||
description: IRootState['description'],
|
||||
}
|
||||
|
||||
interface IGetRouteList {
|
||||
|
@ -67,7 +68,7 @@ export const getStoredMap = (
|
|||
));
|
||||
|
||||
export const postMap = ({
|
||||
title, address, route, stickers, id, token, force, logo, distance, provider, is_public,
|
||||
title, address, route, stickers, id, token, force, logo, distance, provider, is_public, description,
|
||||
}: IPostMap) => axios.post(API.POST_MAP, {
|
||||
title,
|
||||
address,
|
||||
|
@ -80,6 +81,7 @@ export const postMap = ({
|
|||
distance,
|
||||
provider,
|
||||
is_public,
|
||||
description,
|
||||
}).then(result => (result && result.data && result.data));
|
||||
|
||||
export const checkIframeToken = (
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue