diff --git a/server/routers/epja-2024-1/ecliptica/index.js b/server/routers/epja-2024-1/ecliptica/index.js index f937ffa..9db8617 100644 --- a/server/routers/epja-2024-1/ecliptica/index.js +++ b/server/routers/epja-2024-1/ecliptica/index.js @@ -2,4 +2,5 @@ const router = require('express').Router(); const plantsRouter = require('express').Router(); module.exports = router; + router.use('/plants',plantsRouter) \ No newline at end of file diff --git a/server/routers/epja-2024-1/ecliptica/plants/config.js b/server/routers/epja-2024-1/ecliptica/plants/config.js index 4cc00ac..8b9b0c3 100644 --- a/server/routers/epja-2024-1/ecliptica/plants/config.js +++ b/server/routers/epja-2024-1/ecliptica/plants/config.js @@ -3,5 +3,4 @@ const CONFIG = { CLIENT_SECRET: 'bJq7Uiwua52tHiLP80N60hALNtQX2wcE4Mj6yNA9OzG2iZbgHuqyeAs6WSWX6MNJdfv0Nqzb7OHta8qPZr4zxWBLTauleaMfraln3xFEvbXLDpi1Lcrwe7DxfgsQQ1E4', }; - module.exports = CONFIG; \ No newline at end of file diff --git a/server/routers/epja-2024-1/ecliptica/plants/getPlants.js b/server/routers/epja-2024-1/ecliptica/plants/getPlants.js index 506f29d..aeb89e4 100644 --- a/server/routers/epja-2024-1/ecliptica/plants/getPlants.js +++ b/server/routers/epja-2024-1/ecliptica/plants/getPlants.js @@ -13,7 +13,6 @@ app.listen(port, () => { console.log(`Server is running on port ${port}`); }); - async function getAccessToken() { const formData = new FormData(); formData.append('grant_type', 'client_credentials'); 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 f0b73db..20cdeb1 100644 --- a/server/routers/epja-2024-1/ecliptica/plants_calendar/index.js +++ b/server/routers/epja-2024-1/ecliptica/plants_calendar/index.js @@ -13,6 +13,7 @@ const plants = [ frequency: 3, startDate: "2024-10-09", }, + { name: "Sunflower", image: "https://avatars.mds.yandex.net/i?id=31da587c9aabc83ad3615023f91d7284781be06c-10701700-images-thumbs&n=13", diff --git a/server/routers/epja-2024-1/index.js b/server/routers/epja-2024-1/index.js index 146b465..e29e690 100644 --- a/server/routers/epja-2024-1/index.js +++ b/server/routers/epja-2024-1/index.js @@ -3,7 +3,6 @@ const router = express.Router() router.use('/enterfront', require('./enterfront/index')) - router.use('/ecliptica', require('./ecliptica/index')) module.exports = router