mirror of
https://gitea.invidious.io/iv-org/invidious-copy-2022-04-11.git
synced 2024-08-15 00:43:26 +00:00
Add /user/:user/videos
This commit is contained in:
parent
e6d2166bac
commit
d81a803618
1 changed files with 5 additions and 0 deletions
|
@ -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
|
||||||
|
|
Loading…
Reference in a new issue