mirror of
https://github.com/Radiquum/AniX.git
synced 2025-04-06 00:04:39 +00:00
debug
This commit is contained in:
parent
28c203114b
commit
cbdbd95e81
1 changed files with 6 additions and 1 deletions
|
@ -179,11 +179,16 @@ export default async function middleware(
|
||||||
// });
|
// });
|
||||||
// }
|
// }
|
||||||
|
|
||||||
|
const params = await request.json()
|
||||||
|
|
||||||
const formData = new FormData();
|
const formData = new FormData();
|
||||||
for (const [key, value] of Object.entries(await request.json())) {
|
for (const [key, value] of Object.entries(params)) {
|
||||||
formData.append(key as any, value as any);
|
formData.append(key as any, value as any);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
console.log("get JSON:", params);
|
||||||
|
console.log("send FORM:", formData);
|
||||||
|
|
||||||
const response = await fetch(`https://${path}`, {
|
const response = await fetch(`https://${path}`, {
|
||||||
method: "POST",
|
method: "POST",
|
||||||
body: formData,
|
body: formData,
|
||||||
|
|
Loading…
Add table
Reference in a new issue