Frontend updated: Login and register moved to /api/ path.

This commit is contained in:
2020-11-20 18:33:33 +01:00
parent e12e5cafb0
commit 2504dc55d6

View File

@@ -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"