diff options
| author | Omar Roth <omarroth@hotmail.com> | 2018-09-05 23:12:11 -0500 |
|---|---|---|
| committer | Omar Roth <omarroth@hotmail.com> | 2018-09-05 23:12:11 -0500 |
| commit | d81a8036182841a784a578bd68fc97aae1b20cef (patch) | |
| tree | 9e2550b5abd37dfbb648c0f1d095692f6cc12e87 /src/invidious.cr | |
| parent | e6d2166bacf9398930020025e77ba6a2209d502e (diff) | |
| download | invidious-d81a8036182841a784a578bd68fc97aae1b20cef.tar.gz invidious-d81a8036182841a784a578bd68fc97aae1b20cef.tar.bz2 invidious-d81a8036182841a784a578bd68fc97aae1b20cef.zip | |
Add /user/:user/videos
Diffstat (limited to 'src/invidious.cr')
| -rw-r--r-- | src/invidious.cr | 5 |
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 |
