From c1fe27553294f102f60c73f5ae9804427465c0f0 Mon Sep 17 00:00:00 2001 From: nekitboy1998 Date: Tue, 15 Oct 2024 14:43:06 +0300 Subject: [PATCH] fix plantsRouter --- server/routers/epja-2024-1/ecliptica/plants_calendar/index.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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); });