discourse/app/serializers/upload_serializer.rb

15 lines
358 B
Ruby

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