fix plantsRouter

This commit is contained in:
nekitboy1998 2024-10-15 14:43:06 +03:00
parent de46e9bf50
commit c1fe275532

View File

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