Move Wettkampf question count to admin-configured setting per set
This commit is contained in:
+1
-1
@@ -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) => {
|
||||
|
||||
Reference in New Issue
Block a user