mirror of
https://github.com/docusealco/docuseal
synced 2026-11-08 23:42:32 -05:00
adjust download route
This commit is contained in:
1 parent
59b5f03948
commit
1a65e7bcff
3 files changed
+6
-3
No files matched your search
@@ -48,7 +48,7 @@ class SubmitFormCompletedDownloadController < ApplicationController
|
|||||||
private
|
private
|
||||||
|
|
||||||
def submitter_slug
|
def submitter_slug
|
||||||
params[:submit_form_slug] || params[:submitter_slug] || params[:submitter_id]
|
params[:submit_form_slug] || params[:submitter_slug]
|
||||||
end
|
end
|
||||||
|
|
||||||
def respond_with_combined(submitter)
|
def respond_with_combined(submitter)
|
||||||
|
|||||||
@@ -230,7 +230,7 @@ export default {
|
|||||||
download () {
|
download () {
|
||||||
this.isDownloading = true
|
this.isDownloading = true
|
||||||
|
|
||||||
fetch(this.baseUrl + `/submitters/${this.submitterSlug}/download`, {
|
fetch(this.baseUrl + `/s/${this.submitterSlug}/documents`, {
|
||||||
method: 'GET',
|
method: 'GET',
|
||||||
...this.fetchOptions
|
...this.fetchOptions
|
||||||
}).then(async (response) => {
|
}).then(async (response) => {
|
||||||
|
|||||||
+4
-1
@@ -175,10 +175,13 @@ Rails.application.routes.draw do
|
|||||||
|
|
||||||
resources :submitters, only: %i[] do
|
resources :submitters, only: %i[] do
|
||||||
resources :download, only: %i[index], controller: 'submitters_download', constraints: { submitter_id: /\d+/ }
|
resources :download, only: %i[index], controller: 'submitters_download', constraints: { submitter_id: /\d+/ }
|
||||||
resources :download, only: %i[index], controller: 'submit_form_completed_download'
|
|
||||||
resources :send_email, only: %i[create], controller: 'submitters_send_email'
|
resources :send_email, only: %i[create], controller: 'submitters_send_email'
|
||||||
end
|
end
|
||||||
|
|
||||||
|
resources :submitters, only: %i[], param: 'slug' do
|
||||||
|
resources :download, only: %i[index], controller: 'submit_form_completed_download'
|
||||||
|
end
|
||||||
|
|
||||||
resources :settings, only: %i[index]
|
resources :settings, only: %i[index]
|
||||||
|
|
||||||
scope '/settings', as: :settings do
|
scope '/settings', as: :settings do
|
||||||
|
|||||||
Reference in new issue
Block a user