router.post('/get', async(req, res) => {
try {
const { class_id, course_id } = req.body
// handle the data
}
catch (err) {
console.log('/list Error', err)
res.status(500).json({
status: 'error',
message: err
})
}
})
Comments