Modifier le type de contenu de la réponse pour la route /cat et simplifier le gestionnaire en supprimant le paramètre req
This commit is contained in:
@@ -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) {
|
||||
|
||||
Reference in New Issue
Block a user