feat(survey): add createSurvey action

This commit is contained in:
Aminejv 2021-07-27 16:17:18 +01:00
parent 00ee322ee0
commit ead69d141a

View File

@ -520,3 +520,10 @@ export const getUserVersion = async (data) => {
body: JSON.stringify({ data }),
});
};
export const createSurvey = async (data) => {
return await returnJSON(`/api/surveys/create`, {
...DEFAULT_OPTIONS,
body: JSON.stringify({ data }),
});
};