update routes

This commit is contained in:
Pete Matsyburka committed 2026-10-04 11:04:14 +03:00
1 parent 63a874528a
commit 25504e8cb1
5 files changed
+18 -19

No files matched your search

@@ -162,10 +162,9 @@ export default {
},
methods: {
start () {
return fetch(this.baseUrl + `/api/identity_verification/${this.field.uuid}`, {
return fetch(this.baseUrl + `/s/${this.submitterSlug}/identity_verification/${this.field.uuid}`, {
method: 'PUT',
body: JSON.stringify({
submitter_slug: this.submitterSlug,
redirect_url: document.location.href
}),
...this.fetchOptions,
@@ -206,11 +205,8 @@ export default {
})
},
async submit () {
const resp = await fetch(this.baseUrl + '/api/identity_verification', {
const resp = await fetch(this.baseUrl + `/s/${this.submitterSlug}/identity_verification`, {
method: 'POST',
body: JSON.stringify({
submitter_slug: this.submitterSlug
}),
...this.fetchOptions,
headers: { 'Content-Type': 'application/json', ...this.fetchOptions.headers }
})