This commit is contained in:
Luiz Silva 2025-01-07 11:09:50 -03:00
parent 8d240bbee9
commit 9bbff3f685
4 changed files with 12 additions and 6 deletions

View file

@ -59,16 +59,22 @@ export class ClassPilao {
return { rota, url }
}
#gerarUrlDrive(acao: string): { rota: string; url: URL } {
const rota = `${PREFIXO_PILAO}/${acao}/${this.#produto}/${this.#conta}`
const url = new URL(`${this.baseUrlApi}${rota}`)
return { rota, url }
}
rotaEnviarRegistros() {
return this.#gerarUrlApi(pilao_enderecos["enviar-registros"])
return this.#gerarUrlDrive(pilao_enderecos["enviar-registros"])
}
rotaDeletarRegistro() {
return this.#gerarUrlApi(pilao_enderecos["deletar-registros"])
return this.#gerarUrlDrive(pilao_enderecos["deletar-registros"])
}
rotaConsultarSerie() {
return this.#gerarUrlApi(pilao_enderecos["consultar-serie"])
return this.#gerarUrlDrive(pilao_enderecos["consultar-serie"])
}
rotaIframeSerie(tipoVisao: nomesVisoes | ":tipoVisao") {