feat: added project detail API

This commit is contained in:
2026-07-06 14:05:38 +03:30
parent 5715cbe9b1
commit 5964a9b20d
4 changed files with 51 additions and 2 deletions
@@ -79,4 +79,16 @@ export class ProjectController {
): Promise<{ projects: TMProject[]; count: number; paginate: true }> {
return this.projectService.findUserProjects(userId, paramDto.id, pagination);
}
@Get("project/:id")
@ApiOperation({summary: "Get project detail"})
@ApiResponse({status: 200, description: "Got Project Detail Successfully!"})
@ApiResponse({status: 400, description: "Bad request!"})
@ApiResponse({status: 404, description: "The project was not found!"})
getProjectDetail(@Param() paramDto: ParamDto,
@UserDec('id') userId: string
): Promise<TMProject | null> {
return this.projectService.getProjectDetail(paramDto.id, userId);
}
}