add signature verification

This commit is contained in:
Alex Turchyn
2023-06-24 12:27:34 +03:00
parent 0ac30a5fc0
commit c9e255f589
19 changed files with 231 additions and 61 deletions
@@ -12,7 +12,7 @@ module Api
attachment = ActiveStorage::Attachment.create!(
blob:,
name: params[:name],
record: submitter || current_account
record: submitter
)
render json: attachment.as_json(only: %i[uuid], methods: %i[url filename content_type])