mirror of
https://github.com/filecoin-project/slate.git
synced 2024-11-30 02:12:38 +03:00
feat(survey): add createSurvey action
This commit is contained in:
parent
00ee322ee0
commit
ead69d141a
@ -520,3 +520,10 @@ export const getUserVersion = async (data) => {
|
|||||||
body: JSON.stringify({ data }),
|
body: JSON.stringify({ data }),
|
||||||
});
|
});
|
||||||
};
|
};
|
||||||
|
|
||||||
|
export const createSurvey = async (data) => {
|
||||||
|
return await returnJSON(`/api/surveys/create`, {
|
||||||
|
...DEFAULT_OPTIONS,
|
||||||
|
body: JSON.stringify({ data }),
|
||||||
|
});
|
||||||
|
};
|
||||||
|
Loading…
Reference in New Issue
Block a user