.
This commit is contained in:
parent
681141a8d8
commit
a1e543cfb8
12 changed files with 87 additions and 46 deletions
18
dist-import/autenticacao/_usuarios_quipo_governo.js
Normal file
18
dist-import/autenticacao/_usuarios_quipo_governo.js
Normal file
|
|
@ -0,0 +1,18 @@
|
|||
var __awaiter = (this && this.__awaiter) || function (thisArg, _arguments, P, generator) {
|
||||
function adopt(value) { return value instanceof P ? value : new P(function (resolve) { resolve(value); }); }
|
||||
return new (P || (P = Promise))(function (resolve, reject) {
|
||||
function fulfilled(value) { try { step(generator.next(value)); } catch (e) { reject(e); } }
|
||||
function rejected(value) { try { step(generator["throw"](value)); } catch (e) { reject(e); } }
|
||||
function step(result) { result.done ? resolve(result.value) : adopt(result.value).then(fulfilled, rejected); }
|
||||
step((generator = generator.apply(thisArg, _arguments || [])).next());
|
||||
});
|
||||
};
|
||||
import { respostaComuns } from "p-respostas";
|
||||
import { urlAutenticacao } from "./_urlAutenticacao";
|
||||
export const usuarios_quipo_governo = ({ token_produto, ambiente, buscar, }) => __awaiter(void 0, void 0, void 0, function* () {
|
||||
const url = `${urlAutenticacao(ambiente)}/api/usuarios_quipo_governo`;
|
||||
const headers = {
|
||||
token: token_produto,
|
||||
};
|
||||
return buscar(url, headers).catch((e) => respostaComuns.erro(`erro ao buscar usuários quipo governo: ${e}`));
|
||||
});
|
||||
Loading…
Add table
Add a link
Reference in a new issue