import { Controller , Get , Param , UseGuards } from "@nestjs/common" ; import { WorkspaceManagementService } from "./workspace-manage.service" ; @ Controller ( "workspace" ) export class WorkspaceManagementController { constructor ( private readonly service ) { } @ Get ( "/" ) listWorkspaces ( ) { const userid = "" ; this . service . listWorkspaces ( { user : userid , } ) ; } @ Get ( "/primary" ) getPrimaryWorkspace ( ) { this . service . getWorkspace ( { id : workspaceid , } ) ; } @ Get ( "/:id" ) getWorkspace ( @ Param ( "id" ) id ) { const workspaceid = id ; this . service . getWorkspace ( { id : workspaceid , } ) ; } }