Add API endpoint to fetch YouTube transcripts

This commit is contained in:
syeopite
2024-06-11 18:31:41 -07:00
parent bad92093bf
commit 7693f61e44
3 changed files with 101 additions and 0 deletions

View File

@@ -236,6 +236,7 @@ module Invidious::Routing
get "/api/v1/annotations/:id", {{namespace}}::Videos, :annotations
get "/api/v1/comments/:id", {{namespace}}::Videos, :comments
get "/api/v1/clips/:id", {{namespace}}::Videos, :clips
get "/api/v1/transcripts/:id", {{namespace}}::Videos, :transcripts
# Feeds
get "/api/v1/trending", {{namespace}}::Feeds, :trending