annotate client/src/lib/http.js @ 326:a7b2db8b3d18

Added type for roles.
author Sascha L. Teichmann <sascha.teichmann@intevation.de>
date Thu, 02 Aug 2018 18:39:01 +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 });