discourse/app/serializers/category_topic_serializer.rb

8 lines
99 B
Ruby

class CategoryTopicSerializer < BasicTopicSerializer
attributes :slug
has_one :category
end