add documents editor

This commit is contained in:
Pete Matsyburka committed 2026-06-15 10:21:23 +03:00
1 parent ac66809a05
commit 13874b8830
19 files changed
+4130 -56

No files matched your search

@@ -0,0 +1,11 @@
# frozen_string_literal: true
class TemplateDocumentsPageObjectsController < ApplicationController
load_and_authorize_resource :template
def index
attachment = @template.documents_attachments.find_by!(uuid: params[:attachment_uuid])
render json: Templates::ModifyDocuments.page_objects(attachment, params[:page].to_i)
end
end