mirror of
https://github.com/kevin-DL/commander_league_web.git
synced 2026-01-11 18:14:27 +00:00
Basic Profile page
This commit is contained in:
10
services/authenticatedFetchService.js
Normal file
10
services/authenticatedFetchService.js
Normal 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());
|
||||
};
|
||||
Reference in New Issue
Block a user