/
aaronair
/
Test_task_rt_solution
Обзор
Документация
Войти
/
aaronair
/
Test_task_rt_solution
Код
Запросы
0
Задачи
Вики
Пакеты
0
Релизы
0
CI/CD
Аналитика
Безопасность
master
src/features/employees/api.ts
15 строк
438 B
Ilikedrinkpivo
first_commit
28 май 2026, 14:51
28 май 2026, 14:51
b4498fc
Код
Авторство
О чём код?
import { apiFetch } from "@/lib/api"; import type { Initiative } from "@/features/initiatives/types"; export interface EmployeeProfile { id: string; name: string; email: string; title?: string; department?: string; initiatives: Pick<Initiative, "id" | "title" | "status" | "segment">[]; } export async function getEmployee(id: string): Promise<EmployeeProfile> { return apiFetch(`/employees/${encodeURIComponent(id)}`); }