diff --git a/server/routers/epja-2024-1/ecliptica/plants_calendar/index.js b/server/routers/epja-2024-1/ecliptica/plants_calendar/index.js index b92fcf6..a55a8f9 100644 --- a/server/routers/epja-2024-1/ecliptica/plants_calendar/index.js +++ b/server/routers/epja-2024-1/ecliptica/plants_calendar/index.js @@ -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); });