feat: download video feature (#362)

* feat: adding download video feature

* final adjustments and fixes

* fix tests

* fix tests

* pr suggestions and UI improvements

* PR suggestions

* pr sggestions
This commit is contained in:
Erick
2023-01-17 13:23:46 -03:00
committed by GitHub
parent 6125e4faca
commit c1e7ba461b
30 changed files with 733 additions and 32 deletions

View File

@ -50,7 +50,7 @@ describe('Download API', () => {
test('Invalid file extension returns 400', async () => {
const req = Object.assign({}, baseReq, {
path: 'wrong.gif',
path: 'wrong.avi',
});
const res = {

View File

@ -4,7 +4,7 @@ import * as path from 'path';
import { UPLOAD_PATH, ALLOWED_HOSTS } from '../config';
const VALID_VIDEO_EXT = [ '.mp4' ];
const VALID_VIDEO_EXT = [ '.mp4', '.gif' ];
/**
* Get the files and writes it on the response.