diff --git a/web/index.html b/web/index.html index 319a5bb..c5a8d19 100644 --- a/web/index.html +++ b/web/index.html @@ -14,7 +14,7 @@ - + diff --git a/web/js/config.js b/web/js/config.js new file mode 100644 index 0000000..7ee7173 --- /dev/null +++ b/web/js/config.js @@ -0,0 +1 @@ +const instance = axios.create({ baseURL: 'http://localhost:8080/api'}); \ No newline at end of file diff --git a/web/js/login.js b/web/js/login.js new file mode 100644 index 0000000..93ab4c1 --- /dev/null +++ b/web/js/login.js @@ -0,0 +1 @@ +instance.get("token", { auth:{username:"peter93", password:"toto"}}).then(function(response) { console.log(response) }); \ No newline at end of file