File tree Expand file tree Collapse file tree
Expand file tree Collapse file tree Original file line number Diff line number Diff line change @@ -23,6 +23,7 @@ import {
2323import { Request , Response } from 'express' ;
2424import { Permission } from 'src/shared/constants/permissions' ;
2525import { CurrentUser } from 'src/shared/decorators/currentUser.decorator' ;
26+ import { Public } from 'src/shared/decorators/public.decorator' ;
2627import { RequirePermission } from 'src/shared/decorators/requirePermission.decorator' ;
2728import { Scopes } from 'src/shared/decorators/scopes.decorator' ;
2829import { Scope } from 'src/shared/enums/scopes.enum' ;
@@ -59,6 +60,7 @@ export class CopilotOpportunityController {
5960 * @returns Opportunity page data.
6061 */
6162 @Get ( 'copilots/opportunities' )
63+ @Public ( )
6264 @Roles ( ...Object . values ( UserRole ) )
6365 @Scopes (
6466 Scope . PROJECTS_READ ,
@@ -108,6 +110,7 @@ export class CopilotOpportunityController {
108110 */
109111 @Get ( 'copilot/opportunity/:id' )
110112 @Get ( 'copilots/opportunity/:id' )
113+ @Public ( )
111114 // TODO [QUALITY]: Two route decorators (singular/plural) map to the same handler for legacy compatibility; document which route is canonical.
112115 @Roles ( ...Object . values ( UserRole ) )
113116 @Scopes (
You can’t perform that action at this time.
0 commit comments