Skip to content

Commit

Permalink
Fix unused variable error for resourcesButtonController in routes/ind…
Browse files Browse the repository at this point in the history
…ex.js
  • Loading branch information
Ruba Al Mahmoud authored and Ruba Al Mahmoud committed Oct 2, 2024
1 parent 6672e8b commit d2df83b
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 5 deletions.
8 changes: 4 additions & 4 deletions src/controllers/resources-button.js
Original file line number Diff line number Diff line change
Expand Up @@ -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;
2 changes: 1 addition & 1 deletion src/routes/index.js
Original file line number Diff line number Diff line change
Expand Up @@ -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) => {
Expand Down

0 comments on commit d2df83b

Please sign in to comment.