discourse/app/serializers/upload_serializer.rb

6 lines
119 B
Ruby

class UploadSerializer < ApplicationSerializer
attributes :url, :original_filename, :filesize, :width, :height
end