mirror of
https://gitea.invidious.io/iv-org/invidious-copy-2023-06-08.git
synced 2024-08-15 00:53:38 +00:00
Provide empty response on 204
This commit is contained in:
parent
2933093e17
commit
29e9e0f2cc
2 changed files with 5 additions and 1 deletions
|
@ -4473,6 +4473,7 @@ post "/api/v1/auth/preferences" do |env|
|
||||||
PG_DB.exec("UPDATE users SET preferences = $1 WHERE email = $2", preferences.to_json, user.email)
|
PG_DB.exec("UPDATE users SET preferences = $1 WHERE email = $2", preferences.to_json, user.email)
|
||||||
|
|
||||||
env.response.status_code = 204
|
env.response.status_code = 204
|
||||||
|
""
|
||||||
end
|
end
|
||||||
|
|
||||||
get "/api/v1/auth/subscriptions" do |env|
|
get "/api/v1/auth/subscriptions" do |env|
|
||||||
|
@ -4521,6 +4522,7 @@ post "/api/v1/auth/subscriptions/:ucid" do |env|
|
||||||
# YouTube.
|
# YouTube.
|
||||||
|
|
||||||
env.response.status_code = 204
|
env.response.status_code = 204
|
||||||
|
""
|
||||||
end
|
end
|
||||||
|
|
||||||
delete "/api/v1/auth/subscriptions/:ucid" do |env|
|
delete "/api/v1/auth/subscriptions/:ucid" do |env|
|
||||||
|
@ -4537,6 +4539,7 @@ delete "/api/v1/auth/subscriptions/:ucid" do |env|
|
||||||
PG_DB.exec("NOTIFY feeds, E'#{payload}'")
|
PG_DB.exec("NOTIFY feeds, E'#{payload}'")
|
||||||
|
|
||||||
env.response.status_code = 204
|
env.response.status_code = 204
|
||||||
|
""
|
||||||
end
|
end
|
||||||
|
|
||||||
get "/api/v1/auth/tokens" do |env|
|
get "/api/v1/auth/tokens" do |env|
|
||||||
|
@ -4643,6 +4646,7 @@ post "/api/v1/auth/tokens/unregister" do |env|
|
||||||
end
|
end
|
||||||
|
|
||||||
env.response.status_code = 204
|
env.response.status_code = 204
|
||||||
|
""
|
||||||
end
|
end
|
||||||
|
|
||||||
get "/api/manifest/dash/id/videoplayback" do |env|
|
get "/api/manifest/dash/id/videoplayback" do |env|
|
||||||
|
|
|
@ -39,7 +39,7 @@
|
||||||
<div class="pure-u-1">
|
<div class="pure-u-1">
|
||||||
<ul>
|
<ul>
|
||||||
<% scopes.each do |scope| %>
|
<% scopes.each do |scope| %>
|
||||||
<li><%= scope %></li>
|
<li><%= HTML.escape(scope) %></li>
|
||||||
<% end %>
|
<% end %>
|
||||||
</ul>
|
</ul>
|
||||||
</div>
|
</div>
|
||||||
|
|
Loading…
Reference in a new issue