Files
tgex-frontend/lib/api/channels.ts
2025-12-29 10:12:13 +03:00

19 lines
526 B
TypeScript

// ============================================================================
// Channels API (Catalog for Placements)
// ============================================================================
import { api } from "./client";
import type {
Channel,
ChannelsQueryParams,
PaginatedResponse,
} from "@/lib/types/api";
export const channelsApi = {
/**
* Get catalog of channels for placements
*/
list: (params?: ChannelsQueryParams) =>
api.get<PaginatedResponse<Channel>>("/channels", { params }),
};