From a7020db7b31d74ed0c74a2e6130878ca5819168f Mon Sep 17 00:00:00 2001 From: Florian Bouillon Date: Fri, 3 Jul 2020 10:54:49 +0200 Subject: [PATCH] Fait --- Controller/ApiController.js | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/Controller/ApiController.js b/Controller/ApiController.js index e3f8bd6..bc16d2a 100644 --- a/Controller/ApiController.js +++ b/Controller/ApiController.js @@ -7,4 +7,8 @@ module.exports = class ApiController { all(req, res) { res.send(this.db.getAll()) } + + single(req, res) { + res.send(this.db.getByID(req.query.id)) + } } \ No newline at end of file