add status code to get all in group controller

This commit is contained in:
Aaro Koivukangas
2025-12-18 16:24:02 +02:00
parent 7770395855
commit e9f256aa5d
+1 -1
View File
@@ -39,7 +39,7 @@ router.get('/', checkInstructor, async (req, res) => {
]
})
const deserialized = groups.map(formatGroup)
res.json(deserialized)
res.status(200).json(deserialized)
})
const isNil = (obj) => obj === null || obj === undefined