refactor: removing useless get projects by workspace function
This commit is contained in:
@@ -67,19 +67,6 @@ export class ProjectController {
|
||||
return this.projectService.remove(id);
|
||||
}
|
||||
|
||||
@Get("/workspace/:wsId")
|
||||
@PermissionsDec(PermissionEnum.PROJECT)
|
||||
@ApiOperation({ summary: "Get projects of a specific workspace" })
|
||||
@ApiParam({ name: "wsId", description: "Workspace ID" })
|
||||
@ApiResponse({ status: 200, description: "received projects successfully!" })
|
||||
@ApiResponse({ status: 404, description: "WorkSpace not found" })
|
||||
findByWorkspace(
|
||||
@Param("wsId") wsId: string,
|
||||
@Query() pagination: PaginationDto,
|
||||
): Promise<{ projects: TMProject[]; count: number; paginate: true }> {
|
||||
return this.projectService.findByWorkspace(wsId, pagination);
|
||||
}
|
||||
|
||||
@Get("/user")
|
||||
@ApiOperation({ summary: "Get user projects!" })
|
||||
@ApiResponse({ status: 200, description: "Got user projects successfully!" })
|
||||
|
||||
Reference in New Issue
Block a user