view client/src/lib/http.js @ 514:4a1db55a9920

Use auth.RunAs in JSON controller. It's more symmetric to the rest of the application and returns the database connection earlier to the pool.
author Sascha L. Teichmann <sascha.teichmann@intevation.de>
date Mon, 27 Aug 2018 10:35:55 +0200
parents 88d0d60924cf
children
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}'
  }*/
});