From 822abc3faee42ab3ab8717fd88b6094bf8b8b6b1 Mon Sep 17 00:00:00 2001 From: Oliver Akins Date: Sun, 31 Jul 2022 18:07:21 -0600 Subject: [PATCH] Update the axios instance to properly request to the API --- docs/script.js | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/docs/script.js b/docs/script.js index 1a246e8..921ab80 100644 --- a/docs/script.js +++ b/docs/script.js @@ -17,11 +17,12 @@ const app = new Vue({ async tryLogin() { try { let r = await axios.post( - `/login`, + `./login`, undefined, { auth: this.login } ); this.api = axios.create({ + baseURL: window.location.href, validateStatus: null, auth: this.login, });