Setting up preliminary "detailed" routes in the UI, new API end-point for fetching status context
This commit is contained in:
parent
2e7aac793a
commit
5b0cef9781
13 changed files with 400 additions and 12 deletions
13
app/views/api/statuses/context.rabl
Normal file
13
app/views/api/statuses/context.rabl
Normal file
|
@ -0,0 +1,13 @@
|
|||
object false
|
||||
|
||||
node :ancestors do
|
||||
@ancestors.map do |status|
|
||||
partial('api/statuses/show', object: status)
|
||||
end
|
||||
end
|
||||
|
||||
node :descendants do
|
||||
@descendants.map do |status|
|
||||
partial('api/statuses/show', object: status)
|
||||
end
|
||||
end
|
Loading…
Add table
Add a link
Reference in a new issue