api: Add support for the "featured channels" endpoint

This commit is contained in:
Samantaz Fox
2022-12-22 17:26:30 +01:00
parent 4e3a930626
commit 69b8e0919f
2 changed files with 32 additions and 0 deletions

View File

@@ -225,6 +225,7 @@ module Invidious::Routing
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
get "/api/v1/channels/:ucid/channels", {{namespace}}::Channels, :channels
{% for route in {"videos", "latest", "playlists", "community", "search"} %}
get "/api/v1/channels/#{{{route}}}/:ucid", {{namespace}}::Channels, :{{route}}