forked from v4l3n71n/covas-bo
test axios get
This commit is contained in:
parent
6a73d830bf
commit
9c3d4abe8b
@ -14,7 +14,7 @@
|
||||
|
||||
<!-- Bootstrap core CSS -->
|
||||
<link href="css/bootstrap.min.css" rel="stylesheet" integrity="sha384-1BmE4kWBq78iYhFldvKuhfTAU6auU8tT94WrHftjDbrCEXSU1oBoqyl2QvZ6jIW3" crossorigin="anonymous">
|
||||
|
||||
<script src="https://cdn.jsdelivr.net/npm/axios/dist/axios.min.js"></script>
|
||||
<!-- Favicons -->
|
||||
<link rel="apple-touch-icon" href="https://getbootstrap.com/docs/5.1/assets/img/favicons/apple-touch-icon.png" sizes="180x180">
|
||||
<link rel="icon" href="https://getbootstrap.com/docs/5.1/assets/img/favicons/favicon-32x32.png" sizes="32x32" type="image/png">
|
||||
|
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) });
|
Loading…
x
Reference in New Issue
Block a user