From b512ecf6d0399fdc86aebbad533006ea6fe4af21 Mon Sep 17 00:00:00 2001
From: alex <alex@alexloehr.net>
Date: Tue, 23 Jun 2026 16:14:21 +0000
Subject: [PATCH] adding route /api/ping
---
app.js | 11 +++++++++++
1 files changed, 11 insertions(+), 0 deletions(-)
diff --git a/app.js b/app.js
index d784498..5f97e1f 100644
--- a/app.js
+++ b/app.js
@@ -337,6 +337,17 @@
}
})
+ /////// system ////////////////////////////////////////////////////////////////
+
+ .get("/api/ping", async function (req, res) {
+ try {
+ const res2 = await libIlias.ping()
+ return res.send(res2)
+ } catch (err) {
+ console.error(err)
+ return res.code(500).send({status: "error", error: err.toString()})
+ }
+ })
/////// STATIC / SPA ////////////////////////////////////////////////////////////////
--
Gitblit v1.8.0