summaryrefslogtreecommitdiff
path: root/src-migrate/services/promotionProgram.ts
blob: a5026c7196c1082d75d0af827acfb941e58dcafc (plain)
1
2
3
4
5
6
7
8
import { IPromotionProgram } from '~/common/types/promotionProgram';

export const getPromotionProgram = async (
  programId: number
): Promise<{ data: IPromotionProgram }> => {
  const url = `/api/promotion-program/${programId}`;
  return await fetch(url).then((res) => res.json());
};