Basic Profile page

This commit is contained in:
2020-10-26 19:00:28 +00:00
parent a8f5fe8db4
commit 074f3e4419
5 changed files with 94 additions and 9 deletions

View File

@@ -0,0 +1,10 @@
export const authorisedFetchGet = (url, token) => {
return fetch(url, {
method: "GET",
headers: new Headers({
"Content-Type": "application/json",
Authorization: token,
}),
credentials: "same-origin",
}).then((res) => res.json());
};