This commit is contained in:
andreLMpena 2024-12-02 11:10:53 -03:00
parent 0172055539
commit d5353fdaf1
4 changed files with 10 additions and 4 deletions

View file

@ -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())