From 24e2d3d3400dcdc84cd4659d2710e83e97a5700c Mon Sep 17 00:00:00 2001
From: alex <alex@alexloehr.net>
Date: Tue, 23 Jun 2026 16:15:48 +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