From 7acf298779b8ff27e3ed1d0b6cfd39745b6ba51c Mon Sep 17 00:00:00 2001 From: junghyunbak Date: Sat, 18 Nov 2023 14:31:53 +0900 Subject: [PATCH] =?UTF-8?q?fix:=20=EC=A0=95=EC=A0=81=20html2canvas=20impor?= =?UTF-8?q?t=EB=A1=9C=20=EC=9D=B8=ED=95=9C=20=EB=84=A4=EC=9D=B4=ED=8B=B0?= =?UTF-8?q?=EB=B8=8C=20=EB=8F=99=EC=9E=91=20=EB=AC=B8=EC=A0=9C=EB=A1=9C=20?= =?UTF-8?q?=EC=9D=B8=ED=95=B4=20=EC=82=AD=EC=A0=9C?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- apis/methods/get.ts | 18 ------------------ 1 file changed, 18 deletions(-) diff --git a/apis/methods/get.ts b/apis/methods/get.ts index 37ab089..daea9b7 100644 --- a/apis/methods/get.ts +++ b/apis/methods/get.ts @@ -1,9 +1,5 @@ // axios import axios from "axios"; -import { baseUrl } from ".."; - -// html2canvas -import html2canvas from "html2canvas"; export const getEmailDuplicationStatus = async ( email: string @@ -100,17 +96,3 @@ export const getImageUrl = async (imageId: number): Promise => { return data; }; - -/** - * 항상 내부적으로 api를 요청하지는 않지만, html에 이미지가 존재하는 경우 api 요청이 이루어지므로 - * api 주소를 한 곳에서 집중적으로 관리할 필요가 있어 해당 파일 다른 api 함수와 같은 형태로 작성함. - */ -export const getCanvasWithHtmlWithImage = async ( - element: HTMLElement -): Promise => { - const canvas = await html2canvas(element, { - proxy: `${baseUrl}/api/v1/proxy`, - }); - - return canvas; -};