From 6e24540d00137bdc7288f3587941f0e0e4fca0cb Mon Sep 17 00:00:00 2001 From: Mariela Date: Mon, 1 Aug 2022 01:10:17 -0600 Subject: [PATCH] =?UTF-8?q?Arreglar=20funciones=20de=20eliminar=20=C3=A1re?= =?UTF-8?q?a=20com=C3=BAn?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- api-gateway/src/app.controller.ts | 6 ++++++ api-gateway/src/app.service.ts | 4 ++-- 2 files changed, 8 insertions(+), 2 deletions(-) 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