From 38089c74b5323b87520ad57021f9cda934cea54e Mon Sep 17 00:00:00 2001 From: Hykilpikonna Date: Sat, 7 Sep 2019 09:13:11 -0400 Subject: [PATCH] [F] Fix duplicate "/api/" in path --- src/components/login/login.ts | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/components/login/login.ts b/src/components/login/login.ts index a4ec4fc..8422194 100644 --- a/src/components/login/login.ts +++ b/src/components/login/login.ts @@ -24,7 +24,7 @@ export default class Login extends Vue this.loading = true; // Fetch request TODO: Add username and password when the https server is ready. - fetch(`${Constants.API_URL}/api/login`, + fetch(`${Constants.API_URL}/login`, {method: 'POST', body: JSON.stringify({username: this.username, password: this.password})}) .then(res => {