Skip to content

Commit a081480

Browse files
committed
fix: add oauth to visibility
1 parent 4b3e702 commit a081480

1 file changed

Lines changed: 5 additions & 1 deletion

File tree

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)