about summary refs log tree commit diff
path: root/app/views/api/v1/search/index.rabl
blob: 8d1640f2d33d8ad98ead0bb04a499781376f9f62 (plain) (blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
object @search

child :accounts, object_root: false do
  extends 'api/v1/accounts/show'
end

node(:hashtags) do |search|
  search.hashtags.map(&:name)
end

child :statuses, object_root: false do
  extends 'api/v1/statuses/show'
end