Move Wettkampf question count to admin-configured setting per set

This commit is contained in:
2026-04-26 11:22:08 +02:00
parent 7b886c4355
commit 5980aaab41
3 changed files with 41 additions and 30 deletions
+1 -1
View File
@@ -90,7 +90,7 @@ function rewriteImageUrls(rows) {
app.get('/api/sets', (req, res) => {
const config = readConfig();
res.json((config.sets || []).map((s) => ({ id: s.id, name: s.name })));
res.json((config.sets || []).map((s) => ({ id: s.id, name: s.name, wettkampfCount: s.wettkampfCount || null })));
});
app.get('/api/sets/:id/questions', async (req, res) => {