API 경로 수정정

This commit is contained in:
2025-12-24 20:29:43 +09:00
parent e64c81be32
commit 54cd5235fd
3 changed files with 4 additions and 4 deletions
@@ -7,7 +7,7 @@ const BASE_URL = `${PROXY_HOST}/server`;
export const getImageUrlByAtflCd = async (atflCd: string): Promise<string> => { export const getImageUrlByAtflCd = async (atflCd: string): Promise<string> => {
if (!atflCd) return ""; if (!atflCd) return "";
const response = await fetch( const response = await fetch(
`${BASE_URL}/${ENDPOINT.ATTACH_SERVICE.IMAGES}/atflCd/${atflCd}`, `${BASE_URL}${ENDPOINT.ATTACH_SERVICE.IMAGES}/atflCd/${atflCd}`,
); );
const blob = await response.blob(); const blob = await response.blob();
return URL.createObjectURL(blob); return URL.createObjectURL(blob);
+1 -1
View File
@@ -23,7 +23,7 @@ const client = getApiClient();
export const getBannerList = async (siteId: string) => { export const getBannerList = async (siteId: string) => {
const response = await client.get<Banner[]>( const response = await client.get<Banner[]>(
`${BASE_URL}/${ENDPOINT.CMS_SERVICE.BANNERS}/${siteId}`, `${BASE_URL}${ENDPOINT.CMS_SERVICE.BANNERS}/${siteId}`,
{ {
method: "GET", method: "GET",
headers: { headers: {
+2 -2
View File
@@ -59,7 +59,7 @@ const BASE_URL = `${PROXY_HOST}/server`;
export const getSiteInfo = async (siteId: string) => { export const getSiteInfo = async (siteId: string) => {
const response = await fetch( const response = await fetch(
`${BASE_URL}/${ENDPOINT.CMS_SERVICE.SITES}/${siteId}`, `${BASE_URL}${ENDPOINT.CMS_SERVICE.SITES}/${siteId}`,
{ {
method: "GET", method: "GET",
headers: { headers: {
@@ -74,7 +74,7 @@ const client = getApiClient();
export const getSiteList = async () => { export const getSiteList = async () => {
const response = await client.get<SiteListResponse>( const response = await client.get<SiteListResponse>(
`${BASE_URL}/${ENDPOINT.CMS_SERVICE.SITE_LIST}`, `${BASE_URL}${ENDPOINT.CMS_SERVICE.SITE_LIST}`,
{ {
method: "GET", method: "GET",
headers: { headers: {