API 경로 수정정
This commit is contained in:
@@ -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);
|
||||||
|
|||||||
@@ -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: {
|
||||||
|
|||||||
@@ -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: {
|
||||||
|
|||||||
Reference in New Issue
Block a user