discourse/app/serializers/upload_serializer.rb

6 lines
119 B
Ruby

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