mirror of
https://github.com/docusealco/docuseal
synced 2026-11-04 22:42:32 -05:00
update routes
This commit is contained in:
1 parent
6a9b123cdc
commit
f637ee907c
6 files changed
+43
-6
No files matched your search
@@ -126,11 +126,10 @@ window.customElements.define('draw-signature', class extends HTMLElement {
|
||||
const formData = new FormData()
|
||||
|
||||
formData.append('file', file)
|
||||
formData.append('submitter_slug', this.dataset.slug)
|
||||
formData.append('name', 'attachments')
|
||||
formData.append('remember_signature', 'true')
|
||||
|
||||
return fetch('/api/attachments', {
|
||||
return fetch(`/s/${this.dataset.slug}/upload`, {
|
||||
method: 'POST',
|
||||
body: formData
|
||||
}).then(resp => resp.json())
|
||||
|
||||
Reference in new issue
Block a user