Added server/api url

This commit is contained in:
MrFry 2020-03-17 17:54:58 +01:00
parent 49753aa113
commit 4d3f3c0cc4
7 changed files with 19 additions and 5 deletions

View file

@ -14,7 +14,7 @@ export default function AllQuestions (props) {
useEffect(() => {
console.info('Fetching data')
fetch(`${constants.serverUrl}data.json`)
fetch(`${constants.apiUrl}data.json`)
.then((resp) => {
return resp.json()
})