annotate client/src/lib/http.js @ 150:44a7e27a0816

Added missing translation for loginerror Loginerror is now translatable
author Thomas Junk <thomas.junk@intevation.de>
date Mon, 02 Jul 2018 12:54:07 +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 });