mirror of
https://github.com/filecoin-project/slate.git
synced 2024-09-11 22:07:08 +03:00
feat(actions): add views actions
This commit is contained in:
parent
a5f2a7edb2
commit
ffce66e8f8
@ -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