test axios get

This commit is contained in:
2022-07-06 23:40:47 +02:00
parent 6a73d830bf
commit 9c3d4abe8b
3 changed files with 3 additions and 1 deletions

1
web/js/config.js Normal file
View File

@@ -0,0 +1 @@
const instance = axios.create({ baseURL: 'http://localhost:8080/api'});

1
web/js/login.js Normal file
View File

@@ -0,0 +1 @@
instance.get("token", { auth:{username:"peter93", password:"toto"}}).then(function(response) { console.log(response) });