From 2504dc55d65a6f142fae37b0363cbe87d50afb52 Mon Sep 17 00:00:00 2001 From: KevinMidboe Date: Fri, 20 Nov 2020 18:33:33 +0100 Subject: [PATCH] Frontend updated: Login and register moved to /api/ path. --- src/api.js | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/api.js b/src/api.js index 2e0a9e2..bca30d5 100644 --- a/src/api.js +++ b/src/api.js @@ -243,7 +243,7 @@ const handleErrors = async resp => { }; const login = (username, password) => { - const url = new URL("/login", BASE_URL); + const url = new URL("/api/login", BASE_URL); const options = { headers: { "Content-Type": "application/json" @@ -262,7 +262,7 @@ const login = (username, password) => { }; const register = (username, password) => { - const url = new URL("/register", BASE_URL); + const url = new URL("/api/register", BASE_URL); const options = { headers: { "Content-Type": "application/json"