Compare commits

..

No commits in common. "2cfcd7347b4aba0c51fc27e36d536db3f49bc238" and "de46e9bf5095c8871bb6ac34a333311534d1ddcf" have entirely different histories.

View File

@ -35,7 +35,7 @@ const plantsWithDates = plants.map(plant => ({
wateringDates: calculateWateringDates(plant.startDate, plant.frequency), wateringDates: calculateWateringDates(plant.startDate, plant.frequency),
})); }));
plantsRouter.get('/api/plants', (req, res) => { plantsWithDates.get('/api/plants', (req, res) => {
res.json(plantsWithDates); res.json(plantsWithDates);
}); });