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
BIN
View File
Binary file not shown.
+1
View File
@@ -21,6 +21,7 @@
"dependencies": {
"@sveltejs/kit": "^2.7.3",
"@sveltestrap/sveltestrap": "^6.2.7",
"chartjs": "^0.3.24",
"svelte-routing": "^2.13.0"
}
}
+1 -2
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),