Archived
8 lines
234 B
JavaScript
8 lines
234 B
JavaScript
export const getGames = () => {
|
|
return fetch("http://localhost:8000/games", {
|
|
headers:{
|
|
"Authorization": `Token ${localStorage.getItem("lu_token")}`
|
|
}
|
|
})
|
|
.then(response => response.json())
|
|
} |