discourse/app/serializers/upload_serializer.rb

12 lines
265 B
Ruby

class UploadSerializer < ApplicationSerializer
attributes :id,
:url,
:original_filename,
:filesize,
:width,
:height,
:extension,
:short_url,
:retain_hours
end