scale: Variable Global $urlG

This commit is contained in:
2024-12-06 17:33:40 -03:00
parent edaf8c6600
commit c8daa303e4
10 changed files with 65 additions and 54 deletions
+2 -1
View File
@@ -4,6 +4,7 @@
import { writable } from 'svelte/store';
import RowPropiedad from "../Componentes/RowPropiedad.svelte";
import type { PropiedadDto } from "../types";
import { urlG } from "../stores/urlStore";
let propiedades = writable<PropiedadDto[]>([]);
let email = localStorage.getItem("email");
@@ -13,7 +14,7 @@
onMount(async ()=> {
try {
const responce = await fetch("http://localhost:5007/api/propiedades/Propietario", {
const responce = await fetch(String($urlG)+"/api/propiedades/Propietario", {
method: "GET",
headers: {
'Auth': String(token),