1
0
Fork 0
peertube/server/helpers/custom-validators/video-rates.ts
Yohan Boniface c100a6142e 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
2019-04-09 11:02:02 +02:00

5 lines
115 B
TypeScript

function isRatingValid (value: any) {
return value === 'like' || value === 'dislike'
}
export { isRatingValid }