Refactor/Project structure #67

Merged
KevinMidboe merged 56 commits from refactor/project-structure into master 2020-12-10 22:20:38 +00:00
Showing only changes of commit 2504dc55d6 - Show all commits

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"