mirror of
https://github.com/fspc/BikeShed-1.git
synced 2026-09-16 16:31:38 -04:00
Draft of the task list api controller
This commit is contained in:
@@ -0,0 +1,15 @@
|
||||
json.task_lists [@task_list] do |tl|
|
||||
json.array! tl
|
||||
json.links do
|
||||
json.bike do
|
||||
json.href api_bike_path(tl.item)
|
||||
json.id tl.item_id
|
||||
end
|
||||
json.tasks tl.tasks do |task|
|
||||
json.id task.id
|
||||
json.done task.done
|
||||
json.notes task.notes
|
||||
json.task task.task
|
||||
end
|
||||
end
|
||||
end
|
||||
Reference in New Issue
Block a user