create function findValue

This commit is contained in:
joseph le 2023-11-23 15:49:43 +07:00
parent c53ef4057d
commit 5b2e651700
1 changed files with 2 additions and 1 deletions

View File

@ -189,13 +189,14 @@ Route.post("/api/find-value", async ({ request, response }) => {
}
console.log("stdout ", stdout)
setTimeout(() => {
response.status(200).send(stdout.length);
response.status(200).send("success");
}, 2000);
});
} catch (error) {
console.log(error);
}
})
Route.post("/api/test", async () => {
try {
const logs = await Cache.get('logs')