fix(cliente): cargar servicios desde endpoint de cliente en vez de admin
Deploy / deploy (push) Failing after 33h14m30s

Co-Authored-By: Claude Sonnet 4.6 <noreply@anthropic.com>
This commit is contained in:
Beldor
2026-06-20 23:20:25 -03:00
parent 3724669ace
commit b6705239a1
2 changed files with 17 additions and 2 deletions
+2 -2
View File
@@ -37,9 +37,9 @@ function TurnosContent() {
useEffect(() => {
if (!autoId) { router.push("/cliente/dashboard"); return; }
fetch("/api/admin/servicios")
fetch("/api/cliente/servicios")
.then((r) => r.json())
.then((data) => setServicios(data.filter((s: TipoServicio & { activo: boolean }) => s.activo)));
.then((data) => setServicios(data));
fetch("/api/cliente/turnos")
.then((r) => r.json())
.then((data) => { setMisTurnos(data.filter((t: Turno & { autoId: string }) => t.autoId === autoId)); setLoadingTurnos(false); });