import type { ICountries, IGenders } from '../../types'; import { ApiHelper } from '../../runtime'; /** Сервис для работы с API справочников (страны, гендеры) */ export class DictionariesApiService { static async getCountries(): Promise { return await ApiHelper.fetch( '/dictionaries/countries', { method: 'GET', headers: { 'X-Cache-Time': 259200, 'Content-Type': 'application/json', 'Access-Control-Allow-Origin': '*', }, }, useRuntimeConfig(), ); } static async getGenders(): Promise { return await ApiHelper.fetch( '/dictionaries/genders', { method: 'GET', headers: { 'X-Cache-Time': 259200, 'Content-Type': 'application/json', 'Access-Control-Allow-Origin': '*', }, }, useRuntimeConfig(), ); } }