summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorsyeopite <syeopite@syeopite.dev>2021-07-21 20:54:50 -0700
committersyeopite <syeopite@syeopite.dev>2021-08-14 00:18:03 -0700
commit0b0036813f388db32ba4460a7e49c59cafb34d38 (patch)
tree06055666910a46721c33a118c0bf48fe4b210de0
parentc60fccd7f67d666076a2055fe248c35f1dba2fc2 (diff)
downloadinvidious-0b0036813f388db32ba4460a7e49c59cafb34d38.tar.gz
invidious-0b0036813f388db32ba4460a7e49c59cafb34d38.tar.bz2
invidious-0b0036813f388db32ba4460a7e49c59cafb34d38.zip
Remove deprecated APIs
- insights - top feed
-rw-r--r--src/invidious.cr13
1 files changed, 0 insertions, 13 deletions
diff --git a/src/invidious.cr b/src/invidious.cr
index c940dadf..fe7ab769 100644
--- a/src/invidious.cr
+++ b/src/invidious.cr
@@ -1922,11 +1922,6 @@ get "/api/v1/comments/:id" do |env|
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|
locale = LOCALES[env.get("preferences").as(Preferences).locale]?
@@ -2066,14 +2061,6 @@ get "/api/v1/popular" do |env|
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|
locale = LOCALES[env.get("preferences").as(Preferences).locale]?