From 3858fb2e024da1768e236f4bace8545015f318f7 Mon Sep 17 00:00:00 2001 From: Kerboul Date: Tue, 11 Feb 2025 10:54:49 +0100 Subject: [PATCH] =?UTF-8?q?Correction=20de=20l'indentation=20et=20am=C3=A9?= =?UTF-8?q?lioration=20de=20la=20documentation=20Swagger=20pour=20la=20rou?= =?UTF-8?q?te=20d'image?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- routes/api.js | 21 ++++++++++----------- 1 file changed, 10 insertions(+), 11 deletions(-) diff --git a/routes/api.js b/routes/api.js index 2110661..7327215 100644 --- a/routes/api.js +++ b/routes/api.js @@ -545,22 +545,21 @@ router.get('/smile', (req, res) => { /** * @swagger * /image/{filename}: - * get: + * get: * description: Use to request a specific image by filename * parameters: - * - in: path - * name: filename - * required: true - * description: Name of the image file to retrieve. - * schema: - * type: string - * example: image.jpg + * - in: path + * name: filename + * required: true + * description: Name of the image file to retrieve. + * schema: + * type: string + * example: image.jpg * responses: * 200: - * description : A successful response + * description: A successful response * 404: - * description: Image not found - * + * description: Image not found */ router.get('/image/:filename', (req, res) => { const imagePath = path.join('/storage/image', req.params.filename);