diff options
author | PhieF <phoenamandre@gmail.com> | 2018-06-27 14:24:49 +0200 |
---|---|---|
committer | Chocobozzz <me@florianbigard.com> | 2018-06-27 14:24:49 +0200 |
commit | 61b909b9bf849516f30dab2bf5977acfbbddc5c6 (patch) | |
tree | 8724ecfe2d8f054dde21f9e2acb32902321dfcf5 /server/controllers | |
parent | adc236fee3c40bf1fbaa4ad4fc22a7ecb65fb09f (diff) | |
download | PeerTube-61b909b9bf849516f30dab2bf5977acfbbddc5c6.tar.gz PeerTube-61b909b9bf849516f30dab2bf5977acfbbddc5c6.tar.zst PeerTube-61b909b9bf849516f30dab2bf5977acfbbddc5c6.zip |
Filter by category (#720)
* get videos with specific category (api)
* update api doc with category
* add url parameter to filter by category
* fix lint issues
Diffstat (limited to 'server/controllers')
-rw-r--r-- | server/controllers/api/videos/index.ts | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/server/controllers/api/videos/index.ts b/server/controllers/api/videos/index.ts index ca800a9a8..b4ced8c1e 100644 --- a/server/controllers/api/videos/index.ts +++ b/server/controllers/api/videos/index.ts | |||
@@ -407,6 +407,7 @@ async function listVideos (req: express.Request, res: express.Response, next: ex | |||
407 | start: req.query.start, | 407 | start: req.query.start, |
408 | count: req.query.count, | 408 | count: req.query.count, |
409 | sort: req.query.sort, | 409 | sort: req.query.sort, |
410 | category: req.query.category, | ||
410 | hideNSFW: isNSFWHidden(res), | 411 | hideNSFW: isNSFWHidden(res), |
411 | filter: req.query.filter as VideoFilter, | 412 | filter: req.query.filter as VideoFilter, |
412 | withFiles: false | 413 | withFiles: false |