mirror of
https://gitlab.com/MrFry/qmining-page
synced 2025-04-01 20:23:44 +02:00
API update, eslint minor changes
This commit is contained in:
@@ -3,7 +3,6 @@ module.exports = {
|
|||||||
browser: true,
|
browser: true,
|
||||||
es6: true,
|
es6: true,
|
||||||
node: true,
|
node: true,
|
||||||
jest: true,
|
|
||||||
},
|
},
|
||||||
parser: 'babel-eslint',
|
parser: 'babel-eslint',
|
||||||
extends: ['eslint:recommended', 'plugin:react/recommended'],
|
extends: ['eslint:recommended', 'plugin:react/recommended'],
|
||||||
@@ -22,4 +21,5 @@ module.exports = {
|
|||||||
{ exceptions: ['i', 'j', 't', 'Q', 'A', 'C', 'q', 'a', 'b'] },
|
{ exceptions: ['i', 'j', 't', 'Q', 'A', 'C', 'q', 'a', 'b'] },
|
||||||
],
|
],
|
||||||
},
|
},
|
||||||
|
root: true,
|
||||||
}
|
}
|
||||||
|
@@ -37,7 +37,7 @@ export default function TodoTable() {
|
|||||||
}
|
}
|
||||||
|
|
||||||
const onCardClick = (id) => {
|
const onCardClick = (id) => {
|
||||||
fetch(`${constants.apiUrl}todos?id=${id}`, {
|
fetch(`${constants.apiUrl}voteTodo?id=${id}`, {
|
||||||
credentials: 'include',
|
credentials: 'include',
|
||||||
})
|
})
|
||||||
.then((resp) => {
|
.then((resp) => {
|
||||||
|
Reference in New Issue
Block a user