Commit eaf7c049d30e87c4af1420b0def13bbaee550df6

Authored by eduardo.batista
1 parent a9ba35cc
Exists in master and in 1 other branch desenv

[Feat] Pegando id da unidade vindo do header da requisição (opcional)

Showing 1 changed file with 4 additions and 0 deletions   Show diff stats
controlador_ws.php
... ... @@ -27,6 +27,10 @@ class TokenValidationMiddleware{
27 27 ,403
28 28 );
29 29 }
  30 + $unidade = $request->getHeader('unidade');
  31 + if($unidade){
  32 + $rn->alterarUnidadeAtual($unidade);
  33 + }
30 34 $response = $next($request, $response);
31 35 return $response;
32 36 }
... ...