From fa81888c0fc39c336868dba7d637e75e39339ca9 Mon Sep 17 00:00:00 2001 From: Kerboul Date: Sun, 12 Jan 2025 15:25:05 +0000 Subject: [PATCH] =?UTF-8?q?Renommer=20la=20route=20de=20cr=C3=A9ation=20de?= =?UTF-8?q?=20vid=C3=A9o=20en=20'/videos'=20pour=20une=20meilleure=20coh?= =?UTF-8?q?=C3=A9rence=20avec=20les=20conventions=20REST?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- routes/api.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/routes/api.js b/routes/api.js index 9d2caa7..c804eaf 100644 --- a/routes/api.js +++ b/routes/api.js @@ -391,7 +391,7 @@ router.get('/videos/:id', (req, res) => { * 500: * description: Internal server error */ -router.post('/createvideo', (req, res) => { +router.post('/videos', (req, res) => { const query = 'INSERT INTO public.videos (project_id, measurement_ids, video_path, start_timestamp, end_timestamp, image_count, resolution, duration, fps, status, name) VALUES ($1, $2, $3, $4, $5, $6, $7, $8, $9, $10, $11) RETURNING id'; list_ids = req.body.measurement_ids.split(',');