mirror of
https://github.com/docusealco/docuseal
synced 2026-11-10 15:42:32 -05:00
update routes
This commit is contained in:
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 }
|
||||
})
|
||||
|
||||
Reference in new issue
Block a user