19 lines
526 B
TypeScript
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 }),
|
|
};
|