diff options
author | Yohan Boniface <yohanboniface@free.fr> | 2019-04-09 11:02:02 +0200 |
---|---|---|
committer | Chocobozzz <chocobozzz@cpy.re> | 2019-04-09 11:02:02 +0200 |
commit | c100a6142e6571312db9f6407698a21a08b593fb (patch) | |
tree | c80ac9c7754b8f5b133255e003557937e415ee23 /server/initializers | |
parent | 8ce1ba6e3efe0a688d6a0b57e8201cde33ad7aac (diff) | |
download | PeerTube-c100a6142e6571312db9f6407698a21a08b593fb.tar.gz PeerTube-c100a6142e6571312db9f6407698a21a08b593fb.tar.zst PeerTube-c100a6142e6571312db9f6407698a21a08b593fb.zip |
Add /accounts/:username/ratings endpoint (#1756)
* Add /users/me/videos/ratings endpoint
* Move ratings endpoint from users to accounts
* /accounts/:name/ratings: add support for rating= and sort=
* Restrict ratings list to owner
* Wording and better way to ensure current account
Diffstat (limited to 'server/initializers')
-rw-r--r-- | server/initializers/constants.ts | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/server/initializers/constants.ts b/server/initializers/constants.ts index 78dd7cb9d..097199f84 100644 --- a/server/initializers/constants.ts +++ b/server/initializers/constants.ts | |||
@@ -42,6 +42,7 @@ const SORTABLE_COLUMNS = { | |||
42 | VIDEO_CHANNELS: [ 'id', 'name', 'updatedAt', 'createdAt' ], | 42 | VIDEO_CHANNELS: [ 'id', 'name', 'updatedAt', 'createdAt' ], |
43 | VIDEO_IMPORTS: [ 'createdAt' ], | 43 | VIDEO_IMPORTS: [ 'createdAt' ], |
44 | VIDEO_COMMENT_THREADS: [ 'createdAt' ], | 44 | VIDEO_COMMENT_THREADS: [ 'createdAt' ], |
45 | VIDEO_RATES: [ 'createdAt' ], | ||
45 | BLACKLISTS: [ 'id', 'name', 'duration', 'views', 'likes', 'dislikes', 'uuid', 'createdAt' ], | 46 | BLACKLISTS: [ 'id', 'name', 'duration', 'views', 'likes', 'dislikes', 'uuid', 'createdAt' ], |
46 | FOLLOWERS: [ 'createdAt' ], | 47 | FOLLOWERS: [ 'createdAt' ], |
47 | FOLLOWING: [ 'createdAt' ], | 48 | FOLLOWING: [ 'createdAt' ], |