From 26ca5b078d1e499981f84c3d86cfe7d4a2504642 Mon Sep 17 00:00:00 2001 From: glax Date: Tue, 26 Sep 2023 20:05:50 +0200 Subject: [PATCH] Add API call logmessages --- Website/apiConnector.js | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/Website/apiConnector.js b/Website/apiConnector.js index f3aec41..43276b1 100644 --- a/Website/apiConnector.js +++ b/Website/apiConnector.js @@ -191,4 +191,10 @@ function RemoveJob(jobId){ function CancelJob(jobId){ var uri = `${apiUri}/Jobs/Cancel?jobId=${jobId}`; PostData(uri); +} + +async function GetLogmessages(count){ + var uri = `${apiUri}/LogMessages?count=${count}`; + let json = await GetData(uri); + return json; } \ No newline at end of file