.
This commit is contained in:
parent
8d240bbee9
commit
9bbff3f685
4 changed files with 12 additions and 6 deletions
|
|
@ -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") {
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue