Files
itsc-timetable/test.ts
2023-02-03 21:47:54 +08:00

14 lines
318 B
TypeScript

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)