REST Service for POPCORN - ILIAS
alex
2025-06-23 6bd25593d8533f491a268b05ffe986bab1683eca
app.js
@@ -29,7 +29,7 @@
      return res.send({status: "error", error: "access denied"})
   }
   else {
      console.log("NO AUTH FOR ", req.url)
      console.log("AUTH FOR ", req.url)
   }
})
@@ -109,6 +109,11 @@
      }
   })
   .post("/api/user", async function (req, res) {
      const user = req.body
      const res2 = await libIlias.importIliasUser(user) // TODO import or update if already available
      return res.send(res2)
   })
   .delete("/api/user", async function (req, res) { // DELETE ALL users
      const res2 = await libIlias.deleteAllUsers()