feat(Debug) Debugando url do fetch

This commit is contained in:
Kenio 2025-09-12 17:26:33 -03:00
parent c95380c932
commit b936df520a

View file

@ -45,7 +45,7 @@ export default class API {
// Verifica se existe body para envio
const filteredBody = _data.body ? Object.fromEntries(Object.entries(_data.body).filter(([_, v]) => v != null && v !== "")) : null;
console.log(`${this.ApiSchema.url}${this.ApiSchema.prefix}/${this.ApiSchema.endpoint}`)
console.log("URL:: " + `${this.ApiSchema.url}${this.ApiSchema.prefix}/${this.ApiSchema.endpoint}`)
// Realiza a requisição
const response = await fetch(`${this.ApiSchema.url}${this.ApiSchema.prefix}/${this.ApiSchema.endpoint}`, {