Proyectos de Subversion LeadersLinked - Antes de SPA

Rev

Rev 6601 | Ir a la última revisión | Mostrar el archivo completo | | | Autoría | Ultima modificación | Ver Log |

Rev 6601 Rev 6632
Línea 1... Línea 1...
1
import { axios } from '../utils'
1
import { axios } from '../utils'
Línea 2... Línea 2...
2
 
2
 
3
export const getBackendVars = async () => {
3
export const getBackendVars = async (url) => {
4
  return await axios
4
  return await axios
5
    .get('/dashboard', {
5
    .get(url, {
6
      headers: { 'Content-Type': 'application/json' },
6
      headers: { 'Content-Type': 'application/json' },
7
    })
7
    })
8
    .then(({ data }) => data)
8
    .then(({ data }) => data)