feat(lst): added in delay global function

This commit is contained in:
2025-03-20 14:03:09 -05:00
parent f3c4c26ef9
commit 74974323f0
3 changed files with 5 additions and 2 deletions

View File

@@ -76,4 +76,4 @@
"build": 44,
"oldBuild": "backend-0.1.3.zip"
}
}
}

View File

@@ -0,0 +1,3 @@
export const delay = (ms: number) => {
return new Promise((resolve) => setTimeout(resolve, ms));
};

View File

@@ -43,7 +43,7 @@ app.use(
origin: "*", // Allow all origins
allowHeaders: ["Content-Type", "Authorization", "X-Requested-With"],
allowMethods: ["GET", "POST", "PUT", "DELETE", "OPTIONS", "PATCH"],
exposeHeaders: ["Content-Length", "X-Kuma-Revision"],
//exposeHeaders: ["Content-Length", "X-Kuma-Revision"],
credentials: true, // Allow credentials if needed
maxAge: 600,
})