perennialAutodidact / memory-snap

0 stars 0 forks source link

backend - endpoint for returning pexels image array #22

Closed perennialAutodidact closed 1 year ago

perennialAutodidact commented 1 year ago

In order to protect the security of API keys, all external API calls should be made by the Express server backend.

Move the environment variable REACT_APP_PEXELS_API_KEY into the environment variables for the backend app packages/backend and rename it PEXELS_API_KEY.

Create an endpoint that calls the Pexels API and returns the array of images that's returned or an error.