mirror of
https://github.com/docusealco/docuseal.git
synced 2026-08-07 07:14:43 +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
|