From e567a12c4a86c3c3bf9d1b698e6b99e21700a6b2 Mon Sep 17 00:00:00 2001 From: Bjverde Date: Mon, 26 Sep 2022 23:50:20 -0300 Subject: [PATCH] :hammer: APP #270 melhorando mensagem de retorno delete --- .../api/api_controllers/Acesso_perfilAPI.class.php | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/appexemplo_v2.0/api/api_controllers/Acesso_perfilAPI.class.php b/appexemplo_v2.0/api/api_controllers/Acesso_perfilAPI.class.php index ccc5e2c8..47883891 100644 --- a/appexemplo_v2.0/api/api_controllers/Acesso_perfilAPI.class.php +++ b/appexemplo_v2.0/api/api_controllers/Acesso_perfilAPI.class.php @@ -84,7 +84,10 @@ public static function delete(Request $request, Response $response, array $args) $id = $args['id']; $controller = new \Acesso_perfil; $msg = $controller->delete($id); - + if($msg==true){ + $msg = \Message::GENERIC_DELETE; + $msg = $msg.' id='.$id; + } $response = TGenericAPI::getBodyJson($msg,$response); return $response; }