init
This commit is contained in:
13
test.ts
Normal file
13
test.ts
Normal file
@@ -0,0 +1,13 @@
|
||||
const json = await fetch("https://itsc.yongyuancv.cn/api/admin").then((resp) =>
|
||||
resp.json()
|
||||
);
|
||||
|
||||
const result = await fetch("http://localhost:3000/api/admin", {
|
||||
method: "POST",
|
||||
headers: {
|
||||
"Content-Type": "application/json",
|
||||
},
|
||||
body: JSON.stringify(json),
|
||||
}).then(resp => resp.text())
|
||||
|
||||
console.log(result)
|
||||
Reference in New Issue
Block a user