This commit is contained in:
Rizky 2024-06-20 12:15:12 +07:00
parent 239b6d489e
commit 6595e85b98
1 changed files with 6 additions and 1 deletions

View File

@ -24,6 +24,11 @@ export const serveAPI = async (url: URL, req: Request) => {
if (!req.headers.get("content-type")?.startsWith("multipart/form-data")) {
try {
const json = await req.json();
if (req.method === 'POST') {
console.log(req.method, found.raw, json);
}
if (typeof json === "object") {
if (Array.isArray(json)) {
args = json;