mirror of
https://github.com/docusealco/docuseal.git
synced 2026-06-23 04:10:11 +00:00
12 lines
343 B
Ruby
12 lines
343 B
Ruby
# 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
|