This commit is contained in:
2023-02-03 21:47:54 +08:00
parent d1c66a3d80
commit 27f2bbdb47
17 changed files with 845 additions and 505 deletions

13
test.ts Normal file
View 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)