Skip to content

Commit 548a212

Browse files
authored
Merge pull request #3798 from Iron-56/spelling-error
refactor: route middleware ordering cleanup
2 parents 667515f + 73e9f01 commit 548a212

File tree

1 file changed

+5
-1
lines changed

1 file changed

+5
-1
lines changed

server/routes/project.routes.ts

Lines changed: 5 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -26,7 +26,11 @@ router.get('/:username/projects', ProjectController.getProjectsForUser);
2626

2727
router.get('/projects/:project_id/zip', ProjectController.downloadProjectAsZip);
2828

29-
router.patch('/project/visibility', ProjectController.changeProjectVisibility);
29+
router.patch(
30+
'/project/visibility',
31+
isAuthenticated,
32+
ProjectController.changeProjectVisibility
33+
);
3034

3135
// eslint-disable-next-line import/no-default-export
3236
export default router;

0 commit comments

Comments
 (0)