From 4d744e8f59d3b451e91125a7010ce2785f7937af Mon Sep 17 00:00:00 2001 From: Ronnie Friman <L4168@student.jamk.fi> Date: Sun, 30 Jun 2019 18:47:13 +0300 Subject: [PATCH] updated fetch-url --- src/components/EditGameForm.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/components/EditGameForm.js b/src/components/EditGameForm.js index 9158f27..c985f3e 100644 --- a/src/components/EditGameForm.js +++ b/src/components/EditGameForm.js @@ -77,7 +77,7 @@ export class EditGameForm extends React.Component{ let token = sessionStorage.getItem('token'); // Send Game info to the server - fetch('http://localhost:5000/game/' + this.props.gameId, { + fetch('http://localhost:5000/game/edit' + this.props.gameId, { method: 'PUT', headers: { Authorization: 'Bearer ' + token, -- GitLab