Skip to content

Commit

Permalink
Currently stuck here
Browse files Browse the repository at this point in the history
  • Loading branch information
Lexi Kronowitz committed Oct 9, 2024
1 parent 658359a commit 2a6d179
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 1 deletion.
1 change: 1 addition & 0 deletions src/middleware/index.js
Original file line number Diff line number Diff line change
Expand Up @@ -160,6 +160,7 @@ middleware.privateTagListing = helpers.try(async (req, res, next) => {
next();
});


middleware.exposeGroupName = helpers.try(async (req, res, next) => {
await expose('groupName', groups.getGroupNameByGroupSlug, 'slug', req, res, next);
});
Expand Down
4 changes: 3 additions & 1 deletion src/routes/index.js
Original file line number Diff line number Diff line change
Expand Up @@ -84,7 +84,9 @@ _mounts.categories = (app, name, middleware, controllers) => {
};

_mounts.additionalInfo = (app, name, middleware, controllers) => {
setupPageRoute(app, `/${name}`, [], controllers.additionalInfo.list);
const middlewares = [middleware.canViewInfo];

setupPageRoute(app, `/${name}`, middlewares, controllers.additionalInfo.list);
};

_mounts.category = (app, name, middleware, controllers) => {
Expand Down

0 comments on commit 2a6d179

Please sign in to comment.