Backups: render ID in API
This commit is contained in:
parent
ac1298fce8
commit
3342f6a7ef
2 changed files with 19 additions and 0 deletions
|
|
@ -10,6 +10,7 @@ defmodule Pleroma.Web.PleromaAPI.BackupView do
|
|||
|
||||
def render("show.json", %{backup: %Backup{} = backup}) do
|
||||
%{
|
||||
id: backup.id,
|
||||
content_type: backup.content_type,
|
||||
url: download_url(backup),
|
||||
file_size: backup.file_size,
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue