aboutsummaryrefslogtreecommitdiffhomepage
path: root/server/middlewares
Commit message (Collapse)AuthorAgeFilesLines
* Add ability to search by host in serverChocobozzz2021-07-271-0/+5
|
* Move apicache in peertubeChocobozzz2021-07-226-28/+304
| | | | Allow us to upgrade to node 16
* Add ability for instances to follow any actorChocobozzz2021-07-211-8/+29
|
* Reorganize importsChocobozzz2021-07-209-14/+16
|
* Refactor requestsChocobozzz2021-07-2041-41/+41
|
* Support short uuid for GET video/playlistChocobozzz2021-06-2917-85/+151
|
* Fix ownership change with a live videoChocobozzz2021-06-283-79/+122
|
* Add ability to search playlistsChocobozzz2021-06-253-4/+21
|
* Refactor include checksChocobozzz2021-06-111-2/+1
|
* Use raw SQL for most of video queriesChocobozzz2021-06-112-9/+5
|
* Fetch directly all video attributes for get APIChocobozzz2021-06-112-1/+6
|
* add video upload types, add doc middleware to more routesRigel Kent2021-06-062-7/+12
|
* refactor docMiddleware to support operationId-only formRigel Kent2021-06-041-3/+6
|
* fetch -> loadChocobozzz2021-06-032-5/+5
| | | | avoid confusion with AP fetch functions
* Move middleware utils in middlewaresChocobozzz2021-06-0349-124/+580
| | | | helpers modules should not import models
* Refactor AP actorsChocobozzz2021-06-031-3/+3
|
* Refactor server errors handlerChocobozzz2021-06-024-6/+54
|
* refactor error code values for URI compatibilityRigel Kent2021-06-021-3/+3
|
* correct error codes and backward compatRigel Kent2021-06-023-7/+5
|
* refactor API errors to standard error formatRigel Kent2021-06-0229-361/+502
|
* improve api param message for video names and tagsRigel Kent2021-05-313-8/+21
| | | | closes #4026
* improve api param message for datesRigel Kent2021-05-315-12/+20
|
* Implemented configurable minimum signup agePoslovitch2021-05-281-0/+1
| | | | | | | | | | | | | | Implements https://github.com/Chocobozzz/PeerTube/issues/3612 Fixed lint and removed debug Fixed another lint error Apply suggestions from code review Co-authored-by: Chocobozzz <chocobozzz@cpy.re> Add tests for min signup age config
* Support '/w/' and '/w/p/' for watch pageChocobozzz2021-05-281-5/+19
| | | | And use them as default in client
* CleanupChocobozzz2021-05-282-60/+0
| | | | | We must not expose private actor objects to clients Just make 2 GET requests on channel/accounts instead
* Merge branch 'develop' into shorter-URLs-channels-accountsChocobozzz2021-05-278-62/+180
|\
| * Error if importing a torrent with multiple filesChocobozzz2021-05-111-3/+0
| |
| * Reorganize plugin modelsChocobozzz2021-05-111-7/+7
| |
| * Cleanup shared modelsChocobozzz2021-05-111-1/+1
| |
| * Cleanup models directory organizationChocobozzz2021-05-115-19/+19
| |
| * provide more schema examples in openapi specRigel Kent2021-05-111-0/+1
| |
| * Fix E2E testsChocobozzz2021-05-101-1/+0
| |
| * Resumable video uploads (#3933)kontrollanten2021-05-102-32/+153
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | * WIP: resumable video uploads relates to #324 * fix review comments * video upload: error handling * fix audio upload * fixes after self review * Update server/controllers/api/videos/index.ts Co-authored-by: Rigel Kent <par@rigelk.eu> * Update server/middlewares/validators/videos/videos.ts Co-authored-by: Rigel Kent <par@rigelk.eu> * Update server/controllers/api/videos/index.ts Co-authored-by: Rigel Kent <par@rigelk.eu> * update after code review * refactor upload route - restore multipart upload route - move resumable to dedicated upload-resumable route - move checks to middleware - do not leak internal fs structure in response * fix yarn.lock upon rebase * factorize addVideo for reuse in both endpoints * add resumable upload API to openapi spec * add initial test and test helper for resumable upload * typings for videoAddResumable middleware * avoid including aws and google packages via node-uploadx, by only including uploadx/core * rename ex-isAudioBg to more explicit name mentioning it is a preview file for audio * add video-upload-tmp-folder-cleaner job * stronger typing of video upload middleware * reduce dependency to @uploadx/core * add audio upload test * refactor resumable uploads cleanup from job to scheduler * refactor resumable uploads scheduler to compare to last execution time * make resumable upload validator to always cleanup on failure * move legacy upload request building outside of uploadVideo test helper * filter upload-resumable middlewares down to POST, PUT, DELETE also begin to type metadata * merge add duration functions * stronger typings and documentation for uploadx behaviour, move init validator up * refactor(client/video-edit): options > uploadxOptions * refactor(client/video-edit): remove obsolete else * scheduler/remove-dangling-resum: rename tag * refactor(server/video): add UploadVideoFiles type * refactor(mw/validators): restructure eslint disable * refactor(mw/validators/videos): rename import * refactor(client/vid-upload): rename html elem id * refactor(sched/remove-dangl): move fn to method * refactor(mw/async): add method typing * refactor(mw/vali/video): double quote > single * refactor(server/upload-resum): express use > all * proper http methud enum server/middlewares/async.ts * properly type http methods * factorize common video upload validation steps * add check for maximum partially uploaded file size * fix audioBg use * fix extname(filename) in addVideo * document parameters for uploadx's resumable protocol * clear META files in scheduler * last audio refactor before cramming preview in the initial POST form data * refactor as mulitpart/form-data initial post request this allows preview/thumbnail uploads alongside the initial request, and cleans up the upload form * Add more tests for resumable uploads * Refactor remove dangling resumable uploads * Prepare changelog * Add more resumable upload tests * Remove user quota check for resumable uploads * Fix upload error handler * Update nginx template for upload-resumable * Cleanup comment * Remove unused express methods * Prefer to use got instead of raw http * Don't retry on error 500 Co-authored-by: Rigel Kent <par@rigelk.eu> Co-authored-by: Rigel Kent <sendmemail@rigelk.eu> Co-authored-by: Chocobozzz <me@florianbigard.com>
* | Add server API actors routeKimsible2021-05-052-0/+60
|/
* Add ability to filter my videos by liveChocobozzz2021-05-031-2/+6
|
* Upgrade server dep'Chocobozzz2021-04-121-1/+1
|
* Ensure to install supported pluginsChocobozzz2021-04-121-2/+0
|
* Add banner testsChocobozzz2021-04-082-5/+6
|
* Add banners supportChocobozzz2021-04-083-9/+10
|
* Add filter hook to forbid embed accessChocobozzz2021-03-241-1/+1
|
* Refactor auth flowChocobozzz2021-03-244-16/+14
| | | | | Reimplement some node-oauth2-server methods to remove hacky code needed by our external login workflow
* Fix AP security testsChocobozzz2021-03-241-1/+1
|
* Add jobs tag to loggerChocobozzz2021-03-244-19/+26
|
* Upgrade server dependenciesChocobozzz2021-03-031-1/+2
|
* Add ability to cleanup remote AP interactionsChocobozzz2021-03-031-3/+3
|
* Use named chunk for embed on analyzeChocobozzz2021-02-251-1/+1
|
* Fix separate SQL query for video getChocobozzz2021-02-251-5/+4
|
* Trim video name also on serverChocobozzz2021-02-251-0/+2
|
* Add ability to update torrents cache in clientChocobozzz2021-02-181-0/+1
|
* Ensure we don't receive things from local actorsChocobozzz2021-02-081-1/+1
|