Add year in review feature to web UI (#32709)

This commit is contained in:
Eugen Rochko authored and GitHub committed 2024-11-05 14:40:07 +00:00
1 parent 20a147170e
commit d6349c0e9a
38 files changed
+1103 -21

No files matched your search

@@ -17,6 +17,17 @@ class Api::V1::AnnualReportsController < Api::BaseController
relationships: @relationships
end
def show
with_read_replica do
@presenter = AnnualReportsPresenter.new([@annual_report])
@relationships = StatusRelationshipsPresenter.new(@presenter.statuses, current_account.id)
end
render json: @presenter,
serializer: REST::AnnualReportsSerializer,
relationships: @relationships
end
def read
@annual_report.view!
render_empty