From 0486f42387e317e479e673c68dc5b5535173cd8c Mon Sep 17 00:00:00 2001
From: alex <alex@alexloehr.net>
Date: Tue, 23 Sep 2025 09:22:33 +0000
Subject: [PATCH] removed route DELETE /api/user

---
 app.js |    6 ++----
 1 files changed, 2 insertions(+), 4 deletions(-)

diff --git a/app.js b/app.js
index f8feb23..e8a2f5b 100644
--- a/app.js
+++ b/app.js
@@ -68,7 +68,9 @@
     })
 
 fastify
+
     /////// USER ////////////////////////////////////////////////////////////////
+
     .get('/api/user', async function (req, res) {
         const {offset, limit, search} = req.query
         const users = await db.getUsers(offset, limit, search)
@@ -119,10 +121,6 @@
         return res.send(res2)
     })
 
-    .delete("/api/user", async function (req, res) { // DELETE ALL users
-        const res2 = await libIlias.deleteAllUsers()
-        return res.send(res2)
-    })
     .delete("/api/user/:usr_id", async function (req, res) {
         const {usr_id} = req.params
         if (!usr_id || isNaN(Number(usr_id))) {

--
Gitblit v1.8.0