import { client } from "@/shared/api"; import { ENDPOINT } from "@/shared/config"; import type { CodeService, ICode } from "../model/code-interface"; export class CodeApiService implements CodeService { public async getCode(upCd: string): Promise { const response = await client.get( `${ENDPOINT.CMS_SERVICE.CODE}/${upCd}`, ); return response.data; } } export const CodeApi = new CodeApiService();