mirror of
https://github.com/iv-org/invidious.git
synced 2025-11-23 01:45:41 +00:00
Move API endpoints under '/api/v1/' prefix
This commit is contained in:
@@ -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();
|
||||
})
|
||||
|
||||
Reference in New Issue
Block a user