From edcf6061e5efbe1b60bc1d17ff4bbe83ae866a09 Mon Sep 17 00:00:00 2001
From: alex <alex@alexloehr.net>
Date: Tue, 23 Jun 2026 16:12:11 +0000
Subject: [PATCH] adding route /api/ping
---
app.js | 12 +++++++++++-
1 files changed, 11 insertions(+), 1 deletions(-)
diff --git a/app.js b/app.js
index 05e0430..5c21238 100644
--- a/app.js
+++ b/app.js
@@ -75,7 +75,6 @@
})
})
-
/////// USER ////////////////////////////////////////////////////////////////
fastify
@@ -338,6 +337,17 @@
}
})
+ /////// system ////////////////////////////////////////////////////////////////
+
+ .post("/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