cambio de entidad y cosas svlete

Signed-off-by: fede <federico.nicolas.polidoro@gmail.com>
This commit is contained in:
2024-12-24 00:31:53 -03:00
parent 6f34d628c4
commit f9204cd835
5 changed files with 6 additions and 3 deletions

View File

@@ -1,6 +1,5 @@
<script>
import { onMount } from 'svelte';
import { navigate } from 'svelte-routing';
import { writable } from 'svelte/store';
import { urlG } from "../stores/urlStore";
@@ -16,7 +15,7 @@
const handleAccess = async () => {
try {
const response = await fetch('http://127.0.0.1:5007/api/login/validar', {
const response = await fetch($urlG+"/api/login/validar", {
method: 'POST',
headers: {
'Auth': String(token),