build
This commit is contained in:
parent
0172055539
commit
d5353fdaf1
4 changed files with 10 additions and 4 deletions
|
|
@ -24,7 +24,7 @@ export const usuarios_quipo = async ({
|
|||
token_produto: string
|
||||
tipo: tipos_de_acesso_quipo
|
||||
}): Promise<tipoResposta<tipoUsuarioExterno[]>> => {
|
||||
const url = `${urlAutenticacao(ambiente)}/api/usuarios_quipo/${tipo}`
|
||||
const url = `${urlAutenticacao(ambiente)}/api/usuarios_quipo`
|
||||
|
||||
if (!token_produto) return respostaComuns.erro("token_produto não informado")
|
||||
|
||||
|
|
@ -33,6 +33,8 @@ export const usuarios_quipo = async ({
|
|||
}
|
||||
|
||||
return node_fetch(url, {
|
||||
method: "POST",
|
||||
body: JSON.stringify({ tipo }),
|
||||
headers,
|
||||
})
|
||||
.then((r) => r.json())
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue