mirror of
https://github.com/filecoin-project/slate.git
synced 2024-11-25 09:15:19 +03:00
feat(actions): add views actions
This commit is contained in:
parent
4fde330cc0
commit
1d798dda54
@ -540,3 +540,17 @@ export const createSurvey = async (data) => {
|
||||
body: JSON.stringify({ data }),
|
||||
});
|
||||
};
|
||||
|
||||
export const createView = async (data) => {
|
||||
return await returnJSON(`/api/views/create`, {
|
||||
...DEFAULT_OPTIONS,
|
||||
body: JSON.stringify({ data }),
|
||||
});
|
||||
};
|
||||
|
||||
export const deleteView = async (data) => {
|
||||
return await returnJSON(`/api/views/delete`, {
|
||||
...DEFAULT_OPTIONS,
|
||||
body: JSON.stringify({ data }),
|
||||
});
|
||||
};
|
||||
|
Loading…
Reference in New Issue
Block a user