Routing: Add support for the '/live/<id>' route

This commit is contained in:
Samantaz Fox 2023-09-13 23:41:31 +02:00
parent 49b9316b9f
commit 2425c47882
No known key found for this signature in database
GPG key ID: F42821059186176E

View file

@ -158,6 +158,7 @@ module Invidious::Routing
get "/watch", Routes::Watch, :handle get "/watch", Routes::Watch, :handle
post "/watch_ajax", Routes::Watch, :mark_watched post "/watch_ajax", Routes::Watch, :mark_watched
get "/watch/:id", Routes::Watch, :redirect get "/watch/:id", Routes::Watch, :redirect
get "/live/:id", Routes::Watch, :redirect
get "/shorts/:id", Routes::Watch, :redirect get "/shorts/:id", Routes::Watch, :redirect
get "/clip/:clip", Routes::Watch, :clip get "/clip/:clip", Routes::Watch, :clip
get "/w/:id", Routes::Watch, :redirect get "/w/:id", Routes::Watch, :redirect