...

/

File Based API Routes

File Based API Routes

Learn how we can set up API routes with Nuxt.

The Pixabay API had a base URL of https://pixabay.com/api/. We can add parameters to the end, such as: https://pixabay.com/api/?key=${apiKey}&q=sea

The URL string was how we made requests for the image data we wanted, but how could we ...