Commit eaf7c049d30e87c4af1420b0def13bbaee550df6
1 parent
a9ba35cc
Exists in
master
and in
1 other branch
[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,6 +27,10 @@ class TokenValidationMiddleware{ | ||
27 | ,403 | 27 | ,403 |
28 | ); | 28 | ); |
29 | } | 29 | } |
30 | + $unidade = $request->getHeader('unidade'); | ||
31 | + if($unidade){ | ||
32 | + $rn->alterarUnidadeAtual($unidade); | ||
33 | + } | ||
30 | $response = $next($request, $response); | 34 | $response = $next($request, $response); |
31 | return $response; | 35 | return $response; |
32 | } | 36 | } |