From c7512e2041f14fd37b50c4296e6982221536f87e Mon Sep 17 00:00:00 2001 From: joseph le Date: Tue, 12 Sep 2023 15:23:11 +0700 Subject: [PATCH] update routes --- start/routes.ts | 6 ++---- 1 file changed, 2 insertions(+), 4 deletions(-) diff --git a/start/routes.ts b/start/routes.ts index 612f378..8b25ee1 100644 --- a/start/routes.ts +++ b/start/routes.ts @@ -93,9 +93,8 @@ Route.get("/api/log/showLog/:name?", async ({ request, response }) => { let data = content.data.split("\n"); data.map((line, index) => { data[index] = - "" + (index + 1) + - "" + + "|-|" + line; listKeyValues .map((obj) => obj.$original.value) @@ -105,9 +104,8 @@ Route.get("/api/log/showLog/:name?", async ({ request, response }) => { .length === 0) { data[index] = data[index].slice(0, data[index].search(value)) + - "" + value + - "" + + "|-|" + data[index].slice(data[index].search(value) + value.length); // } }