mirror of
https://github.com/Aviortheking/IMIE_CQ.git
synced 2025-06-07 08:19:54 +00:00
Fait :D
This commit is contained in:
parent
b975041bad
commit
6d3e514829
@ -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))
|
||||
}
|
||||
}
|
||||
}
|
Loading…
x
Reference in New Issue
Block a user