12 lines
309 B
TypeScript
12 lines
309 B
TypeScript
import { api } from '@/shared/api/client';
|
|
|
|
import type { paths } from '@/shared/api/schema';
|
|
|
|
type CashResponse = paths['/cash']['get']['responses']['200']['content']['application/json'];
|
|
|
|
export async function getCash() {
|
|
const { data: result } = await api.get<CashResponse>('/cash');
|
|
|
|
return result;
|
|
}
|