api: Add support for shorts and livestreams

This commit is contained in:
Samantaz Fox
2022-12-04 19:24:51 +01:00
parent 6c9754e663
commit 40c666cab2
2 changed files with 92 additions and 29 deletions

View File

@@ -222,6 +222,9 @@ module Invidious::Routing
# Channels
get "/api/v1/channels/:ucid", {{namespace}}::Channels, :home
get "/api/v1/channels/:ucid/shorts", {{namespace}}::Channels, :shorts
get "/api/v1/channels/:ucid/streams", {{namespace}}::Channels, :streams
{% for route in {"videos", "latest", "playlists", "community", "search"} %}
get "/api/v1/channels/#{{{route}}}/:ucid", {{namespace}}::Channels, :{{route}}
get "/api/v1/channels/:ucid/#{{{route}}}", {{namespace}}::Channels, :{{route}}