fix(api): simplifica consultas de agendamentos e medicos

This commit is contained in:
EdilbertoC
2026-04-28 10:52:29 -03:00
parent 767f226952
commit d496494b3e
8 changed files with 92 additions and 56 deletions

11
test.mjs Normal file
View File

@@ -0,0 +1,11 @@
import { apiConfig } from './src/config/api.js';
async function test() {
const url = `${apiConfig.restUrl}/appointments?select=*,patients(full_name),doctors(name)`;
const res = await fetch(url, { headers: { apikey: apiConfig.anonKey }});
const text = await res.text();
console.log('Status:', res.status);
console.log('Response:', text);
}
test().catch(console.error);