mirror of
https://github.com/Aviortheking/IMIE_CQ.git
synced 2025-06-27 08:59:19 +00:00
Fait :D
This commit is contained in:
@ -9,6 +9,10 @@ module.exports = class ApiController {
|
||||
}
|
||||
|
||||
single(req, res) {
|
||||
res.send(this.db.getByID(req.query.id))
|
||||
if (req.query.id === '') {
|
||||
res.send({ message: 'Identifiant incorrect' })
|
||||
} else {
|
||||
res.send(this.db.getByID(req.query.id))
|
||||
}
|
||||
}
|
||||
}
|
Reference in New Issue
Block a user