Merge pull request #13 from Gyubin-Han/feature/frontend

Fix: 원본 URL의 전송 방법 수정
This commit is contained in:
Gyubin Han
2025-06-30 17:55:32 +09:00
committed by GitHub

View File

@@ -143,9 +143,13 @@
}
// 단축 URL 생성 요청 및 처리
var queryUrl="/short?url="+inputUrl;
var queryUrl="/short"
fetch(queryUrl,{
method: "POST"
method: "POST",
headers:{
"Content-Type": "application/json"
},
body: JSON.stringify({ originalUrl : inputUrl })
})
.then(response => {
if(!response.ok){