/
gnomdeployer
/
VUZPlus
Обзор
Документация
Войти
/
gnomdeployer
/
VUZPlus
Код
Запросы
0
Задачи
Вики
Пакеты
0
Релизы
0
CI/CD
Аналитика
master
client/src/api/delegate.api.ts
30 строк
724 B
unwelcome
rework api, rework directions and digital departments to programms, fix applications
13 май 2025, 19:19
13 май 2025, 19:19
4818e0a
Код
Авторство
О чём код?
import axios from "axios"; import { DEVMODE, API } from "@/helpers/constants"; import { GET_COOKIE } from "@/helpers/functions"; //GET //GET All student verification applications export function API_GetAllStudentsRegistrations() { return new Promise((resolve, reject) => { axios.get(`${API}/auth/students/registrations`, { headers: { Authorization: `Bearer ${GET_COOKIE('access_token')}`, } }) .then(response => { if(DEVMODE) console.log('Get all students registrations success: ', response); resolve(response); }) .catch(err => { if(DEVMODE) console.log('Get all students registrations error: ', err); reject(err); }); }); } //POST //PUT //DELETE