jocoso / paws-to-doors

An adoption agency website
MIT License
1 stars 0 forks source link

Create New Routes for Fetching Dog and Cat Breeds in homeRoutes.js #27

Closed AhmedGarcia closed 3 months ago

AhmedGarcia commented 3 months ago

implement axios to dependencies and incorporate it to homeRoutes.js file (axios is used for making HTTP requests to external APIs):

Fetch breed information from The Dog API. Fetch breed information from The Cat API. Fetch geolocation data from the OpenCage Geocoding API.

After implementing axios: npm i axios //and const axios = require('axios');

Create new routes in homeRoutes.js to fetch and display information about dog and cat breeds using The Dog API and The Cat API. These routes will allow users to access detailed breed information, including images and descriptions, directly from the application.

// Get breed info for dogs router.get('/dog-breeds'

// Get breed info for cats router.get('/cat-breeds',