diff --git a/api-gateway/src/app.controller.ts b/api-gateway/src/app.controller.ts index ff53abf1..18196445 100644 --- a/api-gateway/src/app.controller.ts +++ b/api-gateway/src/app.controller.ts @@ -196,6 +196,12 @@ export class AppController { return this.appService.findByCommunity(paramCommunityId); } + + @Delete('commonArea/deleteCommonArea/:id') + deleteCommonArea(@Param('id') id: string) { + return this.appService.deleteCommonArea(id); + } + // #==== API GUEST //#API userService - create user @Post('guest/createGuest') diff --git a/api-gateway/src/app.service.ts b/api-gateway/src/app.service.ts index 169e68e6..c7474c8d 100644 --- a/api-gateway/src/app.service.ts +++ b/api-gateway/src/app.service.ts @@ -259,8 +259,8 @@ export class AppService { } - //GET parameter from API - removeCommonArea(paramCommonAreaId: string) { + //DELETE parameter from API + deleteCommonArea(paramCommonAreaId: string) { const pattern = { cmd: 'removeCommonArea' }; const payload = { id: paramCommonAreaId }; return this.clientCommonAreaApp