mirror of
https://gitea.invidious.io/iv-org/invidious-copy-2022-03-16.git
synced 2024-08-15 00:53:18 +00:00
Move API endpoints under '/api/v1/' prefix
This commit is contained in:
parent
1eedd6ebf9
commit
1202e1f2bf
2 changed files with 5 additions and 5 deletions
|
@ -49,7 +49,7 @@
|
|||
<% end %>
|
||||
|
||||
<% captions.each do |caption| %>
|
||||
<track kind="captions" src="/captions/<%= video.id %>?label=<%= caption["name"]["simpleText"] %>"
|
||||
<track kind="captions" src="/api/v1/captions/<%= video.id %>?label=<%= caption["name"]["simpleText"] %>"
|
||||
srclang="<%= caption["languageCode"] %>" label="<%= caption["name"]["simpleText"]%> ">
|
||||
<% end %>
|
||||
<% end %>
|
||||
|
@ -158,7 +158,7 @@ for ( var i = 0; i < currentSources.length; i++ ) {
|
|||
player.src(currentSources);
|
||||
<% end %>
|
||||
|
||||
fetch("/comments/<%= video.id %>?source=reddit")
|
||||
fetch("/api/v1/comments/<%= video.id %>?source=reddit")
|
||||
.then(function(response) {
|
||||
return response.json();
|
||||
})
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue