update routes

This commit is contained in:
Pete Matsyburka committed 2026-09-27 09:43:48 +03:00
1 parent 6a9b123cdc
commit f637ee907c
6 files changed
+43 -6

No files matched your search

+1 -2
View File
@@ -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())