+ {
+ games.map(game => {
+ return
+ {game.title} by {game.maker}
+ {game.number_of_players} players needed
+ Skill level is {game.skill_level}
+
+ })
+ }
+
+ )
+}
\ No newline at end of file
diff --git a/src/components/game/GameManager.js b/src/components/game/GameManager.js
new file mode 100644
index 0000000..69fd552
--- /dev/null
+++ b/src/components/game/GameManager.js
@@ -0,0 +1,8 @@
+export const getGames = () => {
+ return fetch("http://localhost:8000/games", {
+ headers:{
+ "Authorization": `Token ${localStorage.getItem("lu_token")}`
+ }
+ })
+ .then(response => response.json())
+}
\ No newline at end of file