Closed aleshakay closed 4 years ago
User Story As a user, I should be able to read all possible destinations.
AC WHEN I am on the home/landing page I should see all the destinations. THEN I should be able to view all of the current destinations.
Dev Notes
"environmentId": "", "name": "", "description": "" }```
import apiKeys from '../apiKeys.json'; import 'firebase/auth'; const baseUrl = apiKeys.firebaseKeys.databaseURL;```
axios.get(`${baseUrl}/destinations.json?orderBy="destinationId"&equalTo="${destinationId}"`) .then((response) => { const demDestinations = response.data; const destinations = []; Object.keys(demDestinations).forEach((fbId) => { demDestinations[fbId].id = fbId; destinations.push(demDestinations[fbId]); }); resolve(destinations); // Hard code to only return first machine that comes back }) .catch((error) => reject(error)); });```
User Story As a user, I should be able to read all possible destinations.
AC WHEN I am on the home/landing page I should see all the destinations. THEN I should be able to view all of the current destinations.
Dev Notes