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 endpoint
This commit is contained in:
parent
8e24f4e9e3
commit
a01bdf6c16
1 changed files with 5 additions and 0 deletions
|
@ -938,6 +938,11 @@ get "/videoplayback*" do |env|
|
||||||
end
|
end
|
||||||
end
|
end
|
||||||
|
|
||||||
|
get "/user/:user" do |env|
|
||||||
|
user = env.params.url["user"]
|
||||||
|
env.redirect "/channel/#{user}"
|
||||||
|
end
|
||||||
|
|
||||||
get "/channel/:ucid" do |env|
|
get "/channel/:ucid" do |env|
|
||||||
authorized = env.get? "authorized"
|
authorized = env.get? "authorized"
|
||||||
if authorized
|
if authorized
|
||||||
|
|
Loading…
Reference in a new issue