FIX: Remove login for API
This commit is contained in:
@ -51,7 +51,7 @@
|
||||
get() {
|
||||
return {
|
||||
start: () => {
|
||||
return fetch('{{$urls->api}}/proyecto/' + this.id + '/inicio').then(response => {
|
||||
return fetchAPI('{{$urls->api}}/proyecto/' + this.id + '/inicio').then(response => {
|
||||
if (response.ok) {
|
||||
return response.json()
|
||||
}
|
||||
@ -60,7 +60,7 @@
|
||||
})
|
||||
},
|
||||
current: () => {
|
||||
return fetch('{{$urls->api}}/proyecto/' + this.id + '/estado').then(response => {
|
||||
return fetchAPI('{{$urls->api}}/proyecto/' + this.id + '/estado').then(response => {
|
||||
if (response.ok) {
|
||||
return response.json()
|
||||
}
|
||||
@ -69,7 +69,7 @@
|
||||
})
|
||||
},
|
||||
recepcion: () => {
|
||||
return fetch('{{$urls->api}}/proyecto/' + this.id + '/recepcion').then(response => {
|
||||
return fetchAPI('{{$urls->api}}/proyecto/' + this.id + '/recepcion').then(response => {
|
||||
if (response.ok) {
|
||||
if (response.status === 204) {
|
||||
return null
|
||||
|
Reference in New Issue
Block a user