Add brand redirect for /user/ links

This commit is contained in:
syeopite 2021-06-25 18:45:32 -07:00
parent 8b13ab27ea
commit 37db83a94e
No known key found for this signature in database
GPG key ID: 6FA616E5A5294A82

View file

@ -1649,21 +1649,6 @@ get "/attribution_link" do |env|
env.redirect url
end
get "/user/:user" do |env|
user = env.params.url["user"]
env.redirect "/channel/#{user}"
end
get "/user/:user/videos" do |env|
user = env.params.url["user"]
env.redirect "/channel/#{user}/videos"
end
get "/user/:user/about" do |env|
user = env.params.url["user"]
env.redirect "/channel/#{user}"
end
# API Endpoints
get "/api/v1/stats" do |env|