From b2e14b169fb53c7bb92201e24765fe1510b7f48f Mon Sep 17 00:00:00 2001 From: Kerboul Date: Wed, 12 Feb 2025 11:09:51 +0100 Subject: [PATCH] =?UTF-8?q?Modifier=20le=20type=20de=20contenu=20de=20la?= =?UTF-8?q?=20r=C3=A9ponse=20pour=20la=20route=20/cat=20et=20simplifier=20?= =?UTF-8?q?le=20gestionnaire=20en=20supprimant=20le=20param=C3=A8tre=20req?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- routes/videoRoutes.js | 10 +++++----- 1 file changed, 5 insertions(+), 5 deletions(-) diff --git a/routes/videoRoutes.js b/routes/videoRoutes.js index b329e6c..f0d81d2 100644 --- a/routes/videoRoutes.js +++ b/routes/videoRoutes.js @@ -334,14 +334,14 @@ router.post('/videos/render/:video_id', (req, res) => { * 200: * description: A cat video * content: - * video/mp4: - * schema: - * type: string - * format: binary + * application/octet-stream: + * schema: + * type: string + * format: binary * 404: * description: Video not found */ -router.get('/cat', (req, res) => { +router.get('/cat', (_, res) => { const videoPath = dbTester.getCatVideo(); fs.access(videoPath, fs.constants.F_OK, (err) => { if (err) {