From eaf7c049d30e87c4af1420b0def13bbaee550df6 Mon Sep 17 00:00:00 2001 From: eduardo.batista Date: Mon, 22 May 2017 17:44:23 -0300 Subject: [PATCH] [Feat] Pegando id da unidade vindo do header da requisição (opcional) --- controlador_ws.php | 4 ++++ 1 file changed, 4 insertions(+), 0 deletions(-) diff --git a/controlador_ws.php b/controlador_ws.php index 6e48eab..102a553 100644 --- a/controlador_ws.php +++ b/controlador_ws.php @@ -27,6 +27,10 @@ class TokenValidationMiddleware{ ,403 ); } + $unidade = $request->getHeader('unidade'); + if($unidade){ + $rn->alterarUnidadeAtual($unidade); + } $response = $next($request, $response); return $response; } -- libgit2 0.21.2