REST Service for POPCORN - ILIAS
alex
2025-09-23 0486f42387e317e479e673c68dc5b5535173cd8c
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))) {