Add /user/:user/videos

This commit is contained in:
Omar Roth 2018-09-05 23:12:11 -05:00
parent e6d2166bac
commit d81a803618

View file

@ -1606,6 +1606,11 @@ get "/user/:user" do |env|
env.redirect "/channel/#{user}" env.redirect "/channel/#{user}"
end end
get "/user/:user/videos" do |env|
user = env.params.url["user"]
env.redirect "/channel/#{user}/videos"
end
get "/channel/:ucid" do |env| get "/channel/:ucid" do |env|
user = env.get? "user" user = env.get? "user"
if user if user