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

---
 test/testApiPing.js |    9 ++++-----
 1 files changed, 4 insertions(+), 5 deletions(-)

diff --git a/test/testApiPing.js b/test/testApiPing.js
index 06670ed..21c4dca 100644
--- a/test/testApiPing.js
+++ b/test/testApiPing.js
@@ -12,21 +12,20 @@
 
 describe("using the API", function () {
 
-    describe("the Route POST /api/ping", function () {
+    describe("the Route GET /api/ping", function () {
 
         it("should return an answer from php component", async function () {
             const url = getUrl(ref_id)
             console.log(url)
             const res = await fetch(url, {
-                method: "POST",
-                body: JSON.stringify({}),
+                method: "GET",
+                // body: JSON.stringify({}),
                 headers: {
                     'Content-Type': 'application/json', // Indicate JSON data
                 },
             })
-            // console.log(res)
             const data = await res.json()
-            console.log(data)
+            // console.log(data)
 
             expect(data).to.be.a("object")
             expect(data.status).to.equal("ok")

--
Gitblit v1.8.0