Add channel country and external links to API

This commit is contained in:
syeopite 2021-04-17 04:06:24 -07:00
parent 8fad19d805
commit a566a45571
No known key found for this signature in database
GPG key ID: 6FA616E5A5294A82

View file

@ -2203,6 +2203,8 @@ get "/api/v1/channels/:ucid" do |env|
json.field "descriptionHtml", channel.description_html json.field "descriptionHtml", channel.description_html
json.field "allowedRegions", channel.allowed_regions json.field "allowedRegions", channel.allowed_regions
json.field "external_links", channel.links
json.field "country", channel.country
json.field "latestVideos" do json.field "latestVideos" do
json.array do json.array do