Ir a la última revisión |
|
Ultima modificación |
Ver Log
|
Rev |
Autor |
Línea Nro. |
Línea |
2690 |
stevensc |
1 |
import { axios } from '@app/utils'
|
|
|
2 |
|
|
|
3 |
export const getAdminUrl = (url) => {
|
|
|
4 |
return axios.get(url).then((response) => {
|
|
|
5 |
const { data, success } = response.data
|
|
|
6 |
if (!success) throw new Error(data)
|
|
|
7 |
return data
|
|
|
8 |
})
|
|
|
9 |
}
|