mirror of
https://github.com/docusealco/docuseal
synced 2026-11-04 14:42:32 -05:00
add more api endpoints
This commit is contained in:
1 parent
872fbbc875
commit
1f41807412
9 files changed
+208
-38
No files matched your search
@@ -0,0 +1,13 @@
|
||||
# frozen_string_literal: true
|
||||
|
||||
module Api
|
||||
class SubmittersController < ApiBaseController
|
||||
load_and_authorize_resource :submitter
|
||||
|
||||
def show
|
||||
Submissions::EnsureResultGenerated.call(@submitter) if @submitter.completed_at?
|
||||
|
||||
render json: Submitters::SerializeForApi.call(@submitter, with_template: true, with_events: true)
|
||||
end
|
||||
end
|
||||
end
|
||||
Reference in new issue
Block a user