Skip to content
Snippets Groups Projects
Commit c63daa90 authored by Yusuf Akgül's avatar Yusuf Akgül :hatching_chick:
Browse files

small fix

parent 4e0dd89d
No related branches found
No related tags found
No related merge requests found
Pipeline #37325 passed
File moved
......@@ -15,7 +15,7 @@ export default function AddGameToList(props: { userGameList: Number[], gameId: s
formData.gameId = gameId;
formData.add = false;
const response = await fetch('http://localhost:3000/api/gameList', {
const response = await fetch('/api/favgameslist', {
method: 'PUT',
body: JSON.stringify(formData)
})
......@@ -33,7 +33,7 @@ export default function AddGameToList(props: { userGameList: Number[], gameId: s
formData.gameId = gameId;
formData.add = true;
const response = await fetch('http://localhost:3000/api/gameList', {
const response = await fetch('/api/favgameslist', {
method: 'PUT',
body: JSON.stringify(formData)
})
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment