We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 7b2f2b6 commit c31af6fCopy full SHA for c31af6f
1 file changed
src/index.js
@@ -110,7 +110,10 @@ class App extends React.Component {
110
})
111
}
112
113
- async fetchData(endpoint, baseUrl = 'https://api.hannoverjs.de/') {
+ async fetchData(
114
+ endpoint,
115
+ baseUrl = 'https://hannoverjs.de/.netlify/functions/'
116
+ ) {
117
const res = await fetch(`${baseUrl}${endpoint}`)
118
return camelizeKeys(await res.json(), { deep: true })
119
0 commit comments