discourse/app/serializers/upload_serializer.rb

5 lines
124 B
Ruby

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