From aaf8bdb28c56024089bf4e66e9a138a2dcae0474 Mon Sep 17 00:00:00 2001 From: Omar Roth Date: Fri, 9 Nov 2018 20:37:46 -0600 Subject: [PATCH] Disable unimplemented route --- src/invidious.cr | 22 +++++++++++----------- 1 file changed, 11 insertions(+), 11 deletions(-) diff --git a/src/invidious.cr b/src/invidious.cr index f530940c..c7de22fb 100644 --- a/src/invidious.cr +++ b/src/invidious.cr @@ -1630,19 +1630,19 @@ get "/feed/subscriptions" do |env| end end -get "/feed/history" do |env| - user = env.get? "user" - referer = get_referer(env) +# get "/feed/history" do |env| +# user = env.get? "user" +# referer = get_referer(env) - if user - user = user.as(User) - watched = user.watched.reverse +# if user +# user = user.as(User) +# watched = user.watched.reverse - templated "history" - else - env.redirect referer - end -end +# templated "history" +# else +# env.redirect referer +# end +# end get "/feed/channel/:ucid" do |env| env.response.content_type = "text/xml"