remove api prefix from routes (#280)
* remove api prefix from routes * PR changes --------- Co-authored-by: Julien Nahum <julien@nahum.net>
This commit is contained in:
@@ -64,7 +64,7 @@
|
||||
}),
|
||||
methods: {
|
||||
async send () {
|
||||
const { data } = await this.form.post('/api/password/email')
|
||||
const { data } = await this.form.post('/password/email')
|
||||
this.isMailSent = true
|
||||
},
|
||||
close () {
|
||||
|
||||
@@ -120,7 +120,7 @@ export default {
|
||||
if (this.loading) return
|
||||
|
||||
this.loading = true
|
||||
this.aiForm.post('/api/forms/ai/generate').then(response => {
|
||||
this.aiForm.post('/forms/ai/generate').then(response => {
|
||||
this.useAlert.success(response.data.message)
|
||||
this.fetchGeneratedForm(response.data.ai_form_completion_id)
|
||||
}).catch(error => {
|
||||
|
||||
@@ -95,7 +95,7 @@ export default {
|
||||
}),
|
||||
|
||||
computed: {
|
||||
formEndpoint: () => '/api/open/forms/{id}',
|
||||
formEndpoint: () => '/open/forms/{id}',
|
||||
},
|
||||
|
||||
methods: {
|
||||
|
||||
Reference in New Issue
Block a user