Merge pull request #13 from Gyubin-Han/feature/frontend
Fix: 원본 URL의 전송 방법 수정
This commit is contained in:
@@ -143,9 +143,13 @@
|
|||||||
}
|
}
|
||||||
|
|
||||||
// 단축 URL 생성 요청 및 처리
|
// 단축 URL 생성 요청 및 처리
|
||||||
var queryUrl="/short?url="+inputUrl;
|
var queryUrl="/short"
|
||||||
fetch(queryUrl,{
|
fetch(queryUrl,{
|
||||||
method: "POST"
|
method: "POST",
|
||||||
|
headers:{
|
||||||
|
"Content-Type": "application/json"
|
||||||
|
},
|
||||||
|
body: JSON.stringify({ originalUrl : inputUrl })
|
||||||
})
|
})
|
||||||
.then(response => {
|
.then(response => {
|
||||||
if(!response.ok){
|
if(!response.ok){
|
||||||
|
|||||||
Reference in New Issue
Block a user