visus-plus/web-app/src/api/set_content/addSetContent.js

8 lines
259 B
JavaScript
Raw Blame History

This file contains ambiguous Unicode characters

This file contains Unicode characters that might be confused with other characters. If you think that this is intentional, you can safely ignore this warning. Use the Escape button to reveal them.

import CONFIG from "../../core/сonfig.js";
const addSetContent = async (api, set_content, set_id) => {
const response = await api.post(`${CONFIG.BASE_URL}/set_content/${set_id}/`, set_content);
return response.data;
};
export default addSetContent;