From 299857c11db77af39fed47b65305937af22f859c Mon Sep 17 00:00:00 2001 From: mrfry Date: Sat, 28 Nov 2020 14:57:46 +0100 Subject: [PATCH] API update, eslint minor changes --- .eslintrc.js | 2 +- src/components/todoStuff/todoTable.js | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/.eslintrc.js b/.eslintrc.js index 74e14c5..dda5679 100644 --- a/.eslintrc.js +++ b/.eslintrc.js @@ -3,7 +3,6 @@ module.exports = { browser: true, es6: true, node: true, - jest: true, }, parser: 'babel-eslint', extends: ['eslint:recommended', 'plugin:react/recommended'], @@ -22,4 +21,5 @@ module.exports = { { exceptions: ['i', 'j', 't', 'Q', 'A', 'C', 'q', 'a', 'b'] }, ], }, + root: true, } diff --git a/src/components/todoStuff/todoTable.js b/src/components/todoStuff/todoTable.js index 8ef2659..ff18cb1 100644 --- a/src/components/todoStuff/todoTable.js +++ b/src/components/todoStuff/todoTable.js @@ -37,7 +37,7 @@ export default function TodoTable() { } const onCardClick = (id) => { - fetch(`${constants.apiUrl}todos?id=${id}`, { + fetch(`${constants.apiUrl}voteTodo?id=${id}`, { credentials: 'include', }) .then((resp) => {