annotate client/src/lib/http.js @ 457:62ffb6c8a42e

Remove unnecessary schema qualifiers
author Tom Gottfried <tom@intevation.de>
date Wed, 22 Aug 2018 12:37:34 +0200
parents 88d0d60924cf
children
Ignore whitespace changes - Everywhere: Within whitespace: At end of lines:
rev   line source
6
7c1bde663c8e current frontend
Thomas Junk <thomas.junk@intevation.de>
parents:
diff changeset
1 import axios from "axios";
7c1bde663c8e current frontend
Thomas Junk <thomas.junk@intevation.de>
parents:
diff changeset
2
7c1bde663c8e current frontend
Thomas Junk <thomas.junk@intevation.de>
parents:
diff changeset
3 export const HTTP = axios.create({
7c1bde663c8e current frontend
Thomas Junk <thomas.junk@intevation.de>
parents:
diff changeset
4 baseURL: process.env.VUE_APP_API_URL || "/api"
7c1bde663c8e current frontend
Thomas Junk <thomas.junk@intevation.de>
parents:
diff changeset
5 /* headers: {
7c1bde663c8e current frontend
Thomas Junk <thomas.junk@intevation.de>
parents:
diff changeset
6 Authorization: 'Bearer {token}'
7c1bde663c8e current frontend
Thomas Junk <thomas.junk@intevation.de>
parents:
diff changeset
7 }*/
7c1bde663c8e current frontend
Thomas Junk <thomas.junk@intevation.de>
parents:
diff changeset
8 });