Compare commits

...

2 Commits

Author SHA1 Message Date
2cfcd7347b Merge pull request 'fix plantsRouter' (#35) from nekitboy1998-patch-1 into master
Reviewed-on: #35
2024-10-15 14:43:38 +03:00
c1fe275532 fix plantsRouter 2024-10-15 14:43:06 +03:00

View File

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