REST Service for POPCORN - ILIAS
alex
2025-06-05 e17e002b6902094d5811d0669313e67d96bb6ca4
app.js
@@ -45,8 +45,8 @@
   .get("/api/user/login/:login", async function (req, res) {
      const {login} = req.params
      const user = await db.getUserByLogin(login)
      if (user.length) {
         return res.send(user[0])
      if (user) {
         return res.send(user)
      }
      else {
         return res.code(404).send({status: "error", msg: "not found"})