From 594de40ac39ac32d6d526c8c4875dc6665b2d8dc Mon Sep 17 00:00:00 2001
From: alex <alex@alexloehr.net>
Date: Thu, 23 Oct 2025 09:01:21 +0000
Subject: [PATCH] GS-2375

---
 app.js |    7 +++----
 1 files changed, 3 insertions(+), 4 deletions(-)

diff --git a/app.js b/app.js
index f8feb23..5a2a88d 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))) {
@@ -277,6 +275,7 @@
         }
     })
 
+    // abmelden
     .delete("/api/kurs/:refId/teilnehmer/:usrId", async function (req, res) {
         const {refId, usrId} = req.params
         if (!refId || !usrId) throw {status: "error", msg: "refId and usrId requried"}

--
Gitblit v1.8.0