mirror of
https://github.com/UniversityOfHelsinkiCS/ohtuilmo.git
synced 2026-10-12 19:03:41 +03:00
add status code to get all in group controller
This commit is contained in:
@@ -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
|
||||
|
||||
Reference in New Issue
Block a user