From 875be59deb262cee488565f5a8b1746bc4660571 Mon Sep 17 00:00:00 2001
From: alex <alex@alexloehr.net>
Date: Thu, 23 Oct 2025 15:24:27 +0000
Subject: [PATCH] GS-2375
---
app.js | 13 +++++++++++++
1 files changed, 13 insertions(+), 0 deletions(-)
diff --git a/app.js b/app.js
index 5a2a88d..1109749 100644
--- a/app.js
+++ b/app.js
@@ -190,6 +190,19 @@
return res.code(404).send({status: "error", msg: "not found"})
}
})
+ .get("/api/kurs/:refId/lp", async function (req, res) {
+ const {refId} = req.params
+ const {obj_id: objId} = await db.getObjIdFromRefId(refId)
+
+ const raw = req.query.raw
+ let data = await db.getKursLp(objId, raw)
+
+ if (data) {
+ return res.send(data)
+ } else {
+ return res.code(404).send({status: "error", msg: "not found"})
+ }
+ })
.get("/api/kurs/:refId/teilnehmerByRole", async function (req, res) {
const {refId} = req.params
const {obj_id} = await db.getObjIdFromRefId(refId)
--
Gitblit v1.8.0