Files
docuseal/app/controllers/template_documents_page_objects_controller.rb
T

12 lines
343 B
Ruby
Raw Normal View History

2026-06-10 15:12:16 +03:00
# 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