view client/src/application/lib/http.js @ 666:4c36b0e39d78

feat: prepareProfile converts geoJSON to diagram data. PrepareProfile assumes data given in geoJSON format. It extracts heigth and width information for the diagram and transposes every coordinate given relative to the first coordinate in the first set.
author Thomas Junk <thomas.junk@intevation.de>
date Tue, 18 Sep 2018 13:43:24 +0200
parents ef307bd6b5d8
children ca628dce90dd
line wrap: on
line source

import axios from "axios";

export const HTTP = axios.create({
  baseURL: process.env.VUE_APP_API_URL || "/api"
  /* headers: {
    Authorization: 'Bearer {token}'
  }*/
});