Mercurial > gemma
view client/src/application/lib/http.js @ 776:bb3558142b18
client: add backendrequest to search
* Add request to backend for search. The output goes to the console.
author | Bernhard Reiter <bernhard@intevation.de> |
---|---|
date | Wed, 26 Sep 2018 12:43:44 +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}' }*/ });