about summary refs log tree commit diff
path: root/app/serializers/rest/v2
diff options
context:
space:
mode:
Diffstat (limited to 'app/serializers/rest/v2')
-rw-r--r--app/serializers/rest/v2/search_serializer.rb7
1 files changed, 7 insertions, 0 deletions
diff --git a/app/serializers/rest/v2/search_serializer.rb b/app/serializers/rest/v2/search_serializer.rb
new file mode 100644
index 000000000..cdb6b3a53
--- /dev/null
+++ b/app/serializers/rest/v2/search_serializer.rb
@@ -0,0 +1,7 @@
+# frozen_string_literal: true
+
+class REST::V2::SearchSerializer < ActiveModel::Serializer
+  has_many :accounts, serializer: REST::AccountSerializer
+  has_many :statuses, serializer: REST::StatusSerializer
+  has_many :hashtags, serializer: REST::TagSerializer
+end