From d81a8036182841a784a578bd68fc97aae1b20cef Mon Sep 17 00:00:00 2001 From: Omar Roth Date: Wed, 5 Sep 2018 23:12:11 -0500 Subject: [PATCH] Add /user/:user/videos --- src/invidious.cr | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/src/invidious.cr b/src/invidious.cr index 8fa9f581..de39c3f5 100644 --- a/src/invidious.cr +++ b/src/invidious.cr @@ -1606,6 +1606,11 @@ get "/user/:user" do |env| env.redirect "/channel/#{user}" end +get "/user/:user/videos" do |env| + user = env.params.url["user"] + env.redirect "/channel/#{user}/videos" +end + get "/channel/:ucid" do |env| user = env.get? "user" if user