test axios get
This commit is contained in:
1
web/js/config.js
Normal file
1
web/js/config.js
Normal file
@@ -0,0 +1 @@
|
||||
const instance = axios.create({ baseURL: 'http://localhost:8080/api'});
|
1
web/js/login.js
Normal file
1
web/js/login.js
Normal file
@@ -0,0 +1 @@
|
||||
instance.get("token", { auth:{username:"peter93", password:"toto"}}).then(function(response) { console.log(response) });
|
Reference in New Issue
Block a user