260805_01_ENH: 이메일 템플릿 저장 시 빈 칸 유지, 외부 설문에서 리스트 단건 조회, 리스트 헤더조회, 리스트 단건 수정 기능 사용할수 있도록 api 라우트 생성 및 cors 완화

This commit is contained in:
2026-08-05 12:18:35 +09:00
parent 618718585c
commit 6a2265e767
10 changed files with 220 additions and 15 deletions

View File

@@ -20,6 +20,14 @@ export const createContactApi = () => {
return createServerApi(serverEnv.API_CONTACT_SERVER);
};
// KON/KON-KIWI 등 쿠키 세션이 없는 외부 시스템이 X-API-Key로 호출하는 경우 사용.
// 받은 X-API-Key를 backend로 그대로 전달한다.
export const createContactApiWithApiKey = (apiKey: string) => {
return createServerApi(serverEnv.API_CONTACT_SERVER, {
"X-API-Key": apiKey,
});
};
//Todo: Front에서 바로 붙지 말고 Backend를 통해서 처리 하도록 수정 필요
export const createNotihubApi = () => {
return createServerApi(serverEnv.API_NOTIHUB_SERVER);