summaryrefslogtreecommitdiffstats
path: root/src
diff options
context:
space:
mode:
authorOmar Roth <omarroth@hotmail.com>2018-09-05 23:12:11 -0500
committerOmar Roth <omarroth@hotmail.com>2018-09-05 23:12:11 -0500
commitd81a8036182841a784a578bd68fc97aae1b20cef (patch)
tree9e2550b5abd37dfbb648c0f1d095692f6cc12e87 /src
parente6d2166bacf9398930020025e77ba6a2209d502e (diff)
downloadinvidious-d81a8036182841a784a578bd68fc97aae1b20cef.tar.gz
invidious-d81a8036182841a784a578bd68fc97aae1b20cef.tar.bz2
invidious-d81a8036182841a784a578bd68fc97aae1b20cef.zip
Add /user/:user/videos
Diffstat (limited to 'src')
-rw-r--r--src/invidious.cr5
1 files changed, 5 insertions, 0 deletions
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