Pearl-image-comparer / Pearl

MIT License
3 stars 0 forks source link

Fetch call to api.laji.fi on mount and dragging/zooming the map #66

Closed JooRiiv closed 2 weeks ago

JooRiiv commented 2 weeks ago

Dragging the map and on initial mounting of the component now executes an fetch call to Api.laji.fi. For now it fetches everything from the api and returns it in JSON-form and console logs it only.

Fetch your access token from https://api.laji.fi/explorer and create a .env file on the root folder of the project.

.env file syntax: VITE_ACCESS_TOKEN=YOUR_ACCESS_TOKEN_HERE