imported current state of the mockup into the public repo

Co-authored-by: Tilman Vatteroth <tilman.vatteroth@tu-dortmund.de>
Signed-off-by: Philip Molares <philip.molares@udo.edu>
Signed-off-by: Tilman Vatteroth <tilman.vatteroth@tu-dortmund.de>
This commit is contained in:
Philip Molares 2020-05-14 15:41:38 +02:00
commit 93ce059577
161 changed files with 17419 additions and 0 deletions

3
src/api/config.ts Normal file
View file

@ -0,0 +1,3 @@
export const getConfig = async () => {
return fetch('/config');
}

21
src/api/user.ts Normal file
View file

@ -0,0 +1,21 @@
export const getMe = async () => {
return fetch('/me');
}
export const postEmailLogin = async (email: string, password: string) => {
return fetch("/login", {
method: 'POST',
mode: 'cors',
cache: 'no-cache',
credentials: 'same-origin',
headers: {
'Content-Type': 'application/json'
},
redirect: 'follow',
referrerPolicy: 'no-referrer',
body: JSON.stringify({
email: email,
password: password,
})
});
}