From d2df83b748027ae8dc8c9cb963f1070e69015843 Mon Sep 17 00:00:00 2001 From: Ruba Al Mahmoud Date: Wed, 2 Oct 2024 13:45:03 +0300 Subject: [PATCH] Fix unused variable error for resourcesButtonController in routes/index.js --- src/controllers/resources-button.js | 8 ++++---- src/routes/index.js | 2 +- 2 files changed, 5 insertions(+), 5 deletions(-) diff --git a/src/controllers/resources-button.js b/src/controllers/resources-button.js index 5d8760d23c..e15fd58d25 100644 --- a/src/controllers/resources-button.js +++ b/src/controllers/resources-button.js @@ -3,10 +3,10 @@ const controllers = {}; controllers.getResourcesButtonPage = async (req, res) => { - // Render the resources-button template - res.render('resources-button', { - title: 'Resources Page' // You can customize the title or add more data as needed - }); + // Render the resources-button template + res.render('resources-button', { + title: 'Resources Page', // You can customize the title or add more data as needed + }); }; module.exports = controllers; diff --git a/src/routes/index.js b/src/routes/index.js index 14b9493053..c4bfdb885e 100644 --- a/src/routes/index.js +++ b/src/routes/index.js @@ -82,7 +82,7 @@ _mounts.categories = (app, name, middleware, controllers) => { setupPageRoute(app, '/recent', [], controllers.recent.get); setupPageRoute(app, '/top', [], controllers.top.get); setupPageRoute(app, '/unread', [middleware.ensureLoggedIn], controllers.unread.get); - setupPageRoute(app, '/resources-button', [], controllers.resourcesButton.getResourcesButtonPage); + setupPageRoute(app, '/resources-button', [], resourcesButtonController.getResourcesButtonPage); }; _mounts.category = (app, name, middleware, controllers) => {