Compare commits
2 Commits
de46e9bf50
...
2cfcd7347b
Author | SHA1 | Date | |
---|---|---|---|
2cfcd7347b | |||
c1fe275532 |
@ -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);
|
||||
});
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user