mirror of
https://github.com/Aviortheking/IMIE_CQ.git
synced 2025-04-23 03:12:09 +00:00
Fait
This commit is contained in:
parent
a634564595
commit
a7020db7b3
@ -7,4 +7,8 @@ module.exports = class ApiController {
|
|||||||
all(req, res) {
|
all(req, res) {
|
||||||
res.send(this.db.getAll())
|
res.send(this.db.getAll())
|
||||||
}
|
}
|
||||||
|
|
||||||
|
single(req, res) {
|
||||||
|
res.send(this.db.getByID(req.query.id))
|
||||||
|
}
|
||||||
}
|
}
|
Loading…
x
Reference in New Issue
Block a user