mirror of
https://github.com/we-promise/sure.git
synced 2026-05-12 15:15:01 +00:00
feat(api): expose sync status (#1635)
* feat(api): expose sync status * fix(api): harden sync status review paths * fix(api): address sync status review * fix(api): tighten sync status review fixes * fix(api): address sync status review * test(api): avoid secret-like sync fixture key * test(api): reuse sync status fixture key * fix(api): align sync route helpers * fix(api): tighten sync status scoping * fix(api): make sync status schema nullable-compliant
This commit is contained in:
9
app/views/api/v1/syncs/show.json.jbuilder
Normal file
9
app/views/api/v1/syncs/show.json.jbuilder
Normal file
@@ -0,0 +1,9 @@
|
||||
# frozen_string_literal: true
|
||||
|
||||
json.data do
|
||||
if @sync
|
||||
json.partial! "api/v1/syncs/sync", sync: @sync
|
||||
else
|
||||
json.nil!
|
||||
end
|
||||
end
|
||||
Reference in New Issue
Block a user