mirror of
https://github.com/iv-org/invidious.git
synced 2024-12-30 01:36:21 -05:00
Remove deprecated APIs
- insights - top feed
This commit is contained in:
parent
c60fccd7f6
commit
0b0036813f
@ -1922,11 +1922,6 @@ get "/api/v1/comments/:id" do |env|
|
|||||||
end
|
end
|
||||||
end
|
end
|
||||||
|
|
||||||
get "/api/v1/insights/:id" do |env|
|
|
||||||
locale = LOCALES[env.get("preferences").as(Preferences).locale]?
|
|
||||||
next error_json(410, "YouTube has removed publicly available analytics.")
|
|
||||||
end
|
|
||||||
|
|
||||||
get "/api/v1/annotations/:id" do |env|
|
get "/api/v1/annotations/:id" do |env|
|
||||||
locale = LOCALES[env.get("preferences").as(Preferences).locale]?
|
locale = LOCALES[env.get("preferences").as(Preferences).locale]?
|
||||||
|
|
||||||
@ -2066,14 +2061,6 @@ get "/api/v1/popular" do |env|
|
|||||||
end
|
end
|
||||||
end
|
end
|
||||||
|
|
||||||
get "/api/v1/top" do |env|
|
|
||||||
locale = LOCALES[env.get("preferences").as(Preferences).locale]?
|
|
||||||
|
|
||||||
env.response.content_type = "application/json"
|
|
||||||
env.response.status_code = 400
|
|
||||||
{"error" => "The Top feed has been removed from Invidious."}.to_json
|
|
||||||
end
|
|
||||||
|
|
||||||
get "/api/v1/channels/:ucid" do |env|
|
get "/api/v1/channels/:ucid" do |env|
|
||||||
locale = LOCALES[env.get("preferences").as(Preferences).locale]?
|
locale = LOCALES[env.get("preferences").as(Preferences).locale]?
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user