import { apiRequest } from '@/shared/api/httpClient';
import type { ApiListResponse } from '@/shared/types/api';
import type { CampusCatalogItem } from '@/shared/types/campuses';

const PUBLIC_CAMPUSES_PATH = '/public/campuses';

export function listPublicCampuses(): Promise<ApiListResponse<CampusCatalogItem>> {
  return apiRequest<ApiListResponse<CampusCatalogItem>>(PUBLIC_CAMPUSES_PATH);
}
