/
sam_single_1
/
Fronend
Обзор
Документация
Войти
/
sam_single_1
/
Fronend
Код
Запросы
0
Задачи
Вики
Пакеты
0
Релизы
0
Аналитика
Безопасность
master
src/AuthModule/vk/http/api_requests.js
25 строк
532 B
sam_single_1
First Commit
23 окт 2024, 12:13
23 окт 2024, 12:13
7302d97
Код
Авторство
О чём код?
import { private_authed_instance } from "./axios"; export async function authed_api_post(body, sub_url) { res = await private_authed_instance() .post(sub_url, body) .then((response) => { return response.data; }) .catch((error) => { return {}; }); return res; } export async function authed_api_get(sub_url) { res = await private_authed_instance() .post(sub_url) .then((response) => { return response.data; }) .catch((error) => { return {}; }); return res; }